home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 423_01 / recio200 / rgetf.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-15  |  992 b   |  28 lines

  1. /*****************************************************************************
  2.    MODULE: rgetf.c
  3.   PURPOSE: recio character delimited floating point input functions
  4. COPYRIGHT: (C) 1994 William Pierpoint
  5.  COMPILER: Borland C Version 3.1
  6.        OS: MSDOS Version 6.2
  7.   VERSION: 2.00
  8.   RELEASE: April 15, 1994
  9. *****************************************************************************/
  10.  
  11. #include <ctype.h>
  12. #include <errno.h>
  13. #include <float.h>
  14. #include <limits.h>
  15. #include <stdio.h>
  16. #include <stdlib.h>
  17. #include <string.h>
  18.  
  19. #include "_rgetf.h"
  20.  
  21. /****************************************************************************/
  22. /* rget_fn() - define character delimited floating point get functions      */
  23. /****************************************************************************/
  24. rget_fn(  float, rgetf, 0.0, double, strtod, 
  25.        -FLT_MAX, -FLT_MIN, FLT_MIN, FLT_MAX)
  26. rget_fn( double, rgetd, 0.0, double, strtod, 
  27.        -DBL_MAX, -DBL_MIN, DBL_MIN, DBL_MAX)
  28.