summaryrefslogtreecommitdiffstats
path: root/usr.sbin/xntpd/lib/inttoa.c
blob: ff886f592a843e252027c4abfa90f3630e3b4cd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * inttoa - return an asciized signed integer
 */
#include <stdio.h>

#include "lib_strbuf.h"
#include "ntp_stdlib.h"

char *
inttoa(ival)
	long ival;
{
	register char *buf;

	LIB_GETBUF(buf);

	(void) sprintf(buf, "%ld", (long)ival);
	return buf;
}
OpenPOWER on IntegriCloud