]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - contrib/ntp/libntp/inttoa.c
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.git] / contrib / ntp / libntp / inttoa.c
1 /*
2  * inttoa - return an asciized signed integer
3  */
4 #include <stdio.h>
5
6 #include "lib_strbuf.h"
7 #include "ntp_stdlib.h"
8
9 char *
10 inttoa(
11         long ival
12         )
13 {
14         register char *buf;
15
16         LIB_GETBUF(buf);
17
18         (void) sprintf(buf, "%ld", (long)ival);
19         return buf;
20 }