NetBSD/dist/ntp/libntp/uinttoa.c
2000-03-29 12:38:44 +00:00

23 lines
327 B
C

/* $NetBSD: uinttoa.c,v 1.1.1.1 2000/03/29 12:38:50 simonb Exp $ */
/*
* 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;
}