Sync usage with man page.
[netbsd-mini2440.git] / dist / ntp / libntp / utvtoa.c
blob3fa714a952d65b1496092d177a333a38c6329d00
1 /* $NetBSD$ */
3 /*
4 * utvtoa - return an asciized representation of an unsigned struct timeval
5 */
6 #include <stdio.h>
8 #include "lib_strbuf.h"
10 #if defined(VMS)
11 # include "ntp_fp.h"
12 #endif
13 #include "ntp_stdlib.h"
14 #include "ntp_unixtime.h"
16 char *
17 utvtoa(
18 const struct timeval *tv
21 register char *buf;
23 LIB_GETBUF(buf);
25 (void) sprintf(buf, "%lu.%06lu", (u_long)tv->tv_sec,
26 (u_long)tv->tv_usec);
27 return buf;