PageRenderTime 23ms CodeModel.GetById 17ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/contrib/ntp/libntp/inttoa.c

https://bitbucket.org/freebsd/freebsd-head/
C | 20 lines | 13 code | 4 blank | 3 comment | 0 complexity | 797ed8f071d81f83981a0ebbcd904c42 MD5 | raw file
 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
 9char *
10inttoa(
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}