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