freebsd-dev/contrib/ntp/libntp/uinttoa.c

21 lines
258 B
C
Raw Normal View History

1999-12-09 13:01:21 +00:00
/*
* 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;
}