Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / external / bsd / ntp / dist / libntp / inttoa.c
blobb0a1fa9b65e3e84cf03dc08be61f32dfd021bb86
1 /* $NetBSD$ */
3 /*
4 * inttoa - return an asciized signed integer
5 */
6 #include <config.h>
7 #include <stdio.h>
9 #include "lib_strbuf.h"
10 #include "ntp_stdlib.h"
12 char *
13 inttoa(
14 long val
17 register char *buf;
19 LIB_GETBUF(buf);
20 snprintf(buf, sizeof(buf), "%ld", val);
22 return buf;