/contrib/ntp/libntp/uinttoa.c
https://bitbucket.org/freebsd/freebsd-head/ · C · 20 lines · 13 code · 4 blank · 3 comment · 0 complexity · b941d0d12252c43db113f94a44fbfbc4 MD5 · raw file
- /*
- * uinttoa - return an asciized unsigned integer
- */
- #include <stdio.h>
- #include "lib_strbuf.h"
- #include "ntp_stdlib.h"
- char *
- uinttoa(
- u_long uval
- )
- {
- register char *buf;
- LIB_GETBUF(buf);
- (void) sprintf(buf, "%lu", (u_long)uval);
- return buf;
- }