]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/ntp/libntp/mfptoa.c
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / ntp / libntp / mfptoa.c
1 /*
2  * mfptoa - Return an asciized representation of a signed long fp number
3  */
4 #include "ntp_fp.h"
5 #include "ntp_stdlib.h"
6
7 char *
8 mfptoa(
9         u_long fpi,
10         u_long fpf,
11         short ndec
12         )
13 {
14         int isneg;
15
16         if (M_ISNEG(fpi, fpf)) {
17                 isneg = 1;
18                 M_NEG(fpi, fpf);
19         } else
20             isneg = 0;
21
22         return dolfptoa(fpi, fpf, isneg, ndec, 0);
23 }