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 >
C/C++ Source or Header  |  1989-08-11  |  407b  |  27 lines

  1. /*
  2.  * mfptoa - Return an asciized representation of a signed long fp number
  3.  */
  4. #include <sys/types.h>
  5. #include <sys/socket.h>
  6. #include <netinet/in.h>
  7.  
  8. #include "ntp_fp.h"
  9.  
  10. char *
  11. mfptoa(fpi, fpf, ndec)
  12.     u_long fpi;
  13.     u_long fpf;
  14.     int ndec;
  15. {
  16.     int isneg;
  17.     extern char *dolfptoa();
  18.  
  19.     if (M_ISNEG(fpi, fpf)) {
  20.         isneg = 1;
  21.         M_NEG(fpi, fpf);
  22.     } else
  23.         isneg = 0;
  24.  
  25.     return dolfptoa(fpi, fpf, isneg, ndec, 0);
  26. }
  27.