|
|
BSD 4.3
#include "../h/rt.h"
/*
* defint - if dp is null, default to def; otherwise, convert to integer.
* Note that *lp gets the value.
*/
defint(dp, lp, def)
struct descrip *dp;
long *lp;
int def;
{
DeRef(*dp)
if (NULLDESC(*dp)) {
*lp = (long)def;
return 1;
}
if (cvint(dp, lp) == NULL)
runerr(101, dp);
return 0;
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.