2 * decodenetnum - return a net number (this is crude, but careful)
6 #include <sys/socket.h>
7 #include <netinet/in.h>
9 #include "ntp_stdlib.h"
17 register const char *cp;
22 char buf[80]; /* will core dump on really stupid stuff */
34 for (i = 0; i < 4; i++) {
36 while (isdigit((int)*cp))
44 } else if (*cp != eos)
57 *netnum = htonl(*netnum);