2 * octtoint - convert an ascii string in octal to an unsigned
3 * long, with error checking
9 #include "ntp_stdlib.h"
18 register const char *cp;
27 if (!isdigit((unsigned char)*cp) || *cp == '8' || *cp == '9')
30 return 0; /* overflow */
32 u += *cp++ - '0'; /* ascii dependent */