/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

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