1: #include "../h/rt.h"
   2: 
   3: /*
   4:  * qtos - convert a qualified string named by *d to a C-style string in
   5:  *  in str.  At most MAXSTRING characters are copied into str.
   6:  */
   7: 
   8: qtos(d, str)
   9: struct descrip *d;
  10: char *str;
  11:    {
  12:    register int cnt, slen;
  13:    register char *c;
  14: 
  15:    c = STRLOC(*d);
  16:    slen = STRLEN(*d);
  17:    for (cnt = MIN(slen, MAXSTRING - 1); cnt > 0; cnt--)
  18:       *str++ = *c++;
  19:    *str = '\0';
  20:    }

Defined functions

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