1998-01-09 06:15:09 +03:00
|
|
|
/* $NetBSD: uinttoa.c,v 1.2 1998/01/09 03:16:37 perry Exp $ */
|
|
|
|
|
1997-04-18 17:22:49 +04:00
|
|
|
/*
|
|
|
|
* uinttoa - return an asciized unsigned integer
|
|
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#include "lib_strbuf.h"
|
|
|
|
#include "ntp_stdlib.h"
|
|
|
|
|
|
|
|
char *
|
|
|
|
uinttoa(uval)
|
|
|
|
u_long uval;
|
|
|
|
{
|
|
|
|
register char *buf;
|
|
|
|
|
|
|
|
LIB_GETBUF(buf);
|
|
|
|
|
|
|
|
(void) sprintf(buf, "%lu", (u_long)uval);
|
|
|
|
return buf;
|
|
|
|
}
|