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