1: #include "../h/rt.h"
   2: 
   3: /*
   4:  * defint - if dp is null, default to def; otherwise, convert to integer.
   5:  *  Note that *lp gets the value.
   6:  */
   7: 
   8: defint(dp, lp, def)
   9: struct descrip *dp;
  10: long *lp;
  11: int def;
  12:    {
  13:    DeRef(*dp)
  14:    if (NULLDESC(*dp)) {
  15:       *lp = (long)def;
  16:       return 1;
  17:       }
  18:    if (cvint(dp, lp) == NULL)
  19:       runerr(101, dp);
  20:    return 0;
  21:    }

Defined functions

defint defined in line 8; never used
Last modified: 1984-11-18
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 831
Valid CSS Valid XHTML 1.0 Strict