freebsd_amp_hwpstate/usr.sbin/xntpd/lib/inttoa.c

20 lines
253 B
C
Raw Normal View History

1994-09-29 23:04:24 +00:00
/*
1993-12-21 18:36:48 +00:00
* inttoa - return an asciized signed integer
*/
#include <stdio.h>
#include "lib_strbuf.h"
#include "ntp_stdlib.h"
char *
inttoa(ival)
1994-09-29 23:04:24 +00:00
long ival;
1993-12-21 18:36:48 +00:00
{
register char *buf;
LIB_GETBUF(buf);
1994-09-29 23:04:24 +00:00
(void) sprintf(buf, "%ld", (long)ival);
1993-12-21 18:36:48 +00:00
return buf;
}