home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_144 / 1.ddi / RTLINSRC.ZIP / _SCANF.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  2.4 KB  |  75 lines

  1. /*------------------------------------------------------------------------
  2.  * filename - _scanf.h
  3.  *
  4.  *      Data types and prototypes for scanning functions
  5.  *-----------------------------------------------------------------------*/
  6.  
  7. /*[]------------------------------------------------------------[]*/
  8. /*|                                                              |*/
  9. /*|     C/C++ Run Time Library - Version 4.0                     |*/
  10. /*|                                                              |*/
  11. /*|                                                              |*/
  12. /*|     Copyright (c) 1987, 1991 by Borland International        |*/
  13. /*|     All Rights Reserved.                                     |*/
  14. /*|                                                              |*/
  15. /*[]------------------------------------------------------------[]*/
  16.  
  17. #ifndef __SCANF_H
  18. #define __SCANF_H
  19.  
  20. #if !defined(__STDARG_H)
  21. #include <stdarg.h>
  22. #endif
  23.  
  24. typedef enum
  25. {
  26.     isSuppressed = 1,
  27.     isHalf       = 2,
  28.     isLong       = 4,
  29.     isLongDouble = 8,
  30.     isExclusive  = 16,
  31.     isFarPtr     = 32
  32. } flagBits;
  33.  
  34.  
  35. #ifdef __cplusplus
  36. extern "C" {
  37. #endif
  38. int near _scanner( int   (near *__Get)   (void *__srceP),
  39.                    void  (near *__UnGet) (int __ch, void *__srceP),
  40.                    void       *__srceP,
  41.                    const char *__formP,
  42.                    va_list     __varPP );
  43.  
  44. long double near _scantod( int  (near *__Get)   (void *__srceP),
  45.                        void (near *__UnGet) (int __ch, void *__srceP),
  46.                        const void *__srceP,
  47.                        int         __width,
  48.                        int        *__countP,
  49.                        int        *__statusP );
  50.  
  51. long near _scantol( int   (near *__Get)   (void *__srceP),
  52.                     void  (near *__UnGet) (int __ch, void *__srceP),
  53.                     const void   *__srceP,
  54.                     int           __radix,
  55.                     int           __width,
  56.                     int      *__countP,
  57.                     int      *__statusP );
  58.  
  59. void near _scanpop (void);
  60.  
  61. void near _scanrslt (void *__rsltP, int __rsltType);
  62.  
  63. /*
  64.   Internal RTL function to perform double/float truncations.
  65. */
  66. #define FLT 0
  67. #define DBL 1
  68. double near pascal __ldtrunc(int __flag, long double __x, double __xhuge);
  69.  
  70. #ifdef __cplusplus
  71. }
  72. #endif
  73.  
  74. #endif
  75.