mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-24 11:29:10 +00:00
20 lines
253 B
C
20 lines
253 B
C
/*
|
|
* 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;
|
|
}
|