home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
x
/
xntp3.zip
/
lib
/
mfptoa.c
< prev
next >
Wrap
C/C++ Source or Header
|
1989-08-11
|
407b
|
27 lines
/*
* mfptoa - Return an asciized representation of a signed long fp number
*/
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include "ntp_fp.h"
char *
mfptoa(fpi, fpf, ndec)
u_long fpi;
u_long fpf;
int ndec;
{
int isneg;
extern char *dolfptoa();
if (M_ISNEG(fpi, fpf)) {
isneg = 1;
M_NEG(fpi, fpf);
} else
isneg = 0;
return dolfptoa(fpi, fpf, isneg, ndec, 0);
}