/contrib/ntp/libntp/mfptoa.c
https://bitbucket.org/freebsd/freebsd-head/ · C · 23 lines · 17 code · 3 blank · 3 comment · 1 complexity · 7821ea17ff28dc35fcfcd4aae3878404 MD5 · raw file
- /*
- * mfptoa - Return an asciized representation of a signed long fp number
- */
- #include "ntp_fp.h"
- #include "ntp_stdlib.h"
- char *
- mfptoa(
- u_long fpi,
- u_long fpf,
- short ndec
- )
- {
- int isneg;
- if (M_ISNEG(fpi, fpf)) {
- isneg = 1;
- M_NEG(fpi, fpf);
- } else
- isneg = 0;
- return dolfptoa(fpi, fpf, isneg, ndec, 0);
- }