1: #include "../h/rt.h"
   2: 
   3: /*
   4:  * defstr - if dp is null, default to def; otherwise, convert to string.
   5:  *  *dp gets a descriptor for the resulting string.  buf is used as
   6:  *  a scratch buffer for the conversion (if necessary).
   7:  */
   8: 
   9: defstr(dp, buf, def)
  10: struct descrip *dp;
  11: char *buf;
  12: struct descrip *def;
  13:    {
  14:    DeRef(*dp)
  15:    if (NULLDESC(*dp)) {
  16:       *dp = *def;
  17:       return 1;
  18:       }
  19:    if (cvstr(dp, buf) == NULL)
  20:       runerr(103, dp);
  21:    return 0;
  22:    }

Defined functions

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