diff options
Diffstat (limited to 'contrib/ntp/libntp/uinttoa.c')
-rw-r--r-- | contrib/ntp/libntp/uinttoa.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib/ntp/libntp/uinttoa.c b/contrib/ntp/libntp/uinttoa.c new file mode 100644 index 0000000..be48ea5 --- /dev/null +++ b/contrib/ntp/libntp/uinttoa.c @@ -0,0 +1,20 @@ +/* + * uinttoa - return an asciized unsigned integer + */ +#include <stdio.h> + +#include "lib_strbuf.h" +#include "ntp_stdlib.h" + +char * +uinttoa( + u_long uval + ) +{ + register char *buf; + + LIB_GETBUF(buf); + + (void) sprintf(buf, "%lu", (u_long)uval); + return buf; +} |