1: #include "../h/rt.h" 2: 3: /* 4: * defcset(dp,cp,buf,def) - if dp is null, default to def; 5: * otherwise, convert to cset or die trying. 6: */ 7: 8: defcset(dp, cp, buf, def) 9: struct descrip *dp; 10: int **cp; 11: int *buf, *def; 12: { 13: DeRef(*dp) 14: if (NULLDESC(*dp)) { 15: *cp = def; 16: return 1; 17: } 18: if (cvcset(dp, cp, buf) == NULL) 19: runerr(104, dp); 20: return 0; 21: }