4 * tvtoa - return an asciized representation of a struct timeval
7 #include "lib_strbuf.h"
12 #include "ntp_stdlib.h"
13 #include "ntp_unixtime.h"
19 const struct timeval
*tv
27 if (tv
->tv_sec
< 0 || tv
->tv_usec
< 0) {
39 (void) sprintf(buf
, "%s%lu.%06lu", (isneg
?"-":""), sec
, usec
);