|
|
1.1 root 1: #include "../h/rt.h"
2:
3: /*
4: * defany(dp,def) - if dp is null, default to def.
5: */
6:
7: defany(dp, def)
8: struct descrip *dp, *def;
9: {
10: DeRef(*dp)
11: if (NULLDESC(*dp)) {
12: *dp = *def;
13: return 1;
14: }
15: return 0;
16: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.