Sync usage with man page.
[netbsd-mini2440.git] / dist / ntp / libntp / mfptoms.c
blobaa7ecc75bd863b6f64d12f11a952546293f4dbd2
1 /* $NetBSD$ */
3 /*
4 * mfptoms - Return an asciized signed long fp number in milliseconds
5 */
6 #include "ntp_fp.h"
7 #include "ntp_stdlib.h"
9 char *
10 mfptoms(
11 u_long fpi,
12 u_long fpf,
13 short ndec
16 int isneg;
18 if (M_ISNEG(fpi, fpf)) {
19 isneg = 1;
20 M_NEG(fpi, fpf);
21 } else
22 isneg = 0;
24 return dolfptoa(fpi, fpf, isneg, ndec, 1);