Return to inttoa.c CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / ntp / libntp |
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: }