2 * numtoa - return asciized network numbers store in local array space
7 #ifdef HAVE_NETINET_IN_H
8 #include <netinet/in.h> /* ntohl */
14 #include "lib_strbuf.h"
15 #include "ntp_stdlib.h"
22 register u_int32 netnum;
27 snprintf(buf, LIB_BUFLENGTH, "%lu.%lu.%lu.%lu",
28 ((u_long)netnum >> 24) & 0xff,
29 ((u_long)netnum >> 16) & 0xff,
30 ((u_long)netnum >> 8) & 0xff,
31 (u_long)netnum & 0xff);
36 /* Convert a refid & stratum to a string */
51 memcpy(&text[1], &refid, sizeof(refid));
52 text[1 + sizeof(refid)] = '\0';
55 text[tlen + 1] = '\0';