NetBSD/lib/libntp/mfptoms.c

25 lines
395 B
C
Raw Normal View History

1998-01-09 06:15:09 +03:00
/* $NetBSD: mfptoms.c,v 1.2 1998/01/09 03:16:22 perry Exp $ */
1997-04-18 17:22:49 +04:00
/*
* mfptoms - Return an asciized signed long fp number in milliseconds
*/
#include "ntp_fp.h"
#include "ntp_stdlib.h"
char *
mfptoms(fpi, fpf, ndec)
u_long fpi;
u_long fpf;
int ndec;
{
int isneg;
if (M_ISNEG(fpi, fpf)) {
isneg = 1;
M_NEG(fpi, fpf);
} else
isneg = 0;
return dolfptoa(fpi, fpf, isneg, ndec, 1);
}