File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / ntp / libntp / uinttoa.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, 1 month ago) by misho
Branches: ntp, MAIN
CVS tags: v4_2_6p5p0, v4_2_6p5, HEAD
ntp 4.2.6p5

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

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