mirror of
https://github.com/Stichting-MINIX-Research-Foundation/netbsd.git
synced 2025-08-14 00:24:03 -04:00
23 lines
328 B
C
23 lines
328 B
C
/* $NetBSD: uinttoa.c,v 1.1.1.2 2012/01/31 21:23:58 kardel 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);
|
|
snprintf(buf, LIB_BUFLENGTH, "%lu", uval);
|
|
|
|
return buf;
|
|
}
|