2 * numtoa - return asciized network numbers store in local array space
7 #include <netinet/in.h> /* ntohl */
12 #include "lib_strbuf.h"
13 #include "ntp_stdlib.h"
15 /* Convert a refid & stratum to a string
16 * Only used by record_raw_stats
30 return inet_ntoa(in4
);
34 memcpy(&text
[0], &refid
, sizeof(refid
));
35 text
[1 + sizeof(refid
)] = '\0';
36 // Chop off trailing spaces. Facebook was sending "FB "
37 for (int i
=sizeof(refid
)-1; i
>0; i
--) {
38 if (text
[i
] != ' ') break;
43 strlcat(text
, "?", LIB_BUFLENGTH
);