|
|
1.1 ! root 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: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.