File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / ntp / libntp / inttoa.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue May 29 12:08:38 2012 UTC (12 years, 5 months ago) by misho
Branches: ntp, MAIN
CVS tags: v4_2_6p5p0, v4_2_6p5, HEAD
ntp 4.2.6p5

    1: /*
    2:  * inttoa - return an asciized signed integer
    3:  */
    4: #include <config.h>
    5: #include <stdio.h>
    6: 
    7: #include "lib_strbuf.h"
    8: #include "ntp_stdlib.h"
    9: 
   10: char *
   11: inttoa(
   12: 	long val
   13: 	)
   14: {
   15: 	register char *buf;
   16: 
   17: 	LIB_GETBUF(buf);
   18: 	snprintf(buf, LIB_BUFLENGTH, "%ld", val);
   19: 
   20: 	return buf;
   21: }

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>