/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
- /*
- * inttoa - return an asciized signed integer
- */
- #include <stdio.h>
- #include "lib_strbuf.h"
- #include "ntp_stdlib.h"
- char *
- inttoa(
- long ival
- )
- {
- register char *buf;
- LIB_GETBUF(buf);
- (void) sprintf(buf, "%ld", (long)ival);
- return buf;
- }