aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/xntpd/lib/uinttoa.c
blob: 7c406dd5902e06c0b2c162b1168984f671615ba2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * 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;
}