home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v1.zip / IBMCPP / INCLUDE / LIMITS.H < prev    next >
Text File  |  1993-09-17  |  2KB  |  68 lines

  1. #pragma info( none )
  2. #ifndef __CHKHDR__
  3.    #pragma info( none )
  4. #endif
  5. #pragma info( restore )
  6.  
  7. #ifndef __limits_h
  8.    #define __limits_h
  9.  
  10.    #ifdef __cplusplus
  11.       extern "C" {
  12.    #endif
  13.  
  14.    /********************************************************************/
  15.    /*  <limits.h> header file                                          */
  16.    /*                                                                  */
  17.    /*  Licensed Materials - Property of IBM                            */
  18.    /*                                                                  */
  19.    /*  IBM C/C++ Tools Version 2.01                                    */
  20.    /*  Copyright (C) International Business Machines Corp., 1991,1993  */
  21.    /*  All rights reserved                                             */
  22.    /*                                                                  */
  23.    /*  US Government Users Restricted Rights -                         */
  24.    /*  Use, duplication, or disclosure restricted                      */
  25.    /*  by GSA ADP Schedule Contract with IBM Corp.                     */
  26.    /*                                                                  */
  27.    /********************************************************************/
  28.  
  29.    #define CHAR_BIT      8
  30.  
  31.    #define SCHAR_MIN     (-128)
  32.    #define SCHAR_MAX     127
  33.    #define UCHAR_MAX     255
  34.  
  35.    #ifdef _CHAR_UNSIGNED
  36.       #define CHAR_MIN      0
  37.       #define CHAR_MAX      UCHAR_MAX
  38.    #else
  39.       #define CHAR_MIN      SCHAR_MIN
  40.       #define CHAR_MAX      SCHAR_MAX
  41.    #endif
  42.  
  43.    #define MB_LEN_MAX    2
  44.  
  45.    #define SHRT_MIN      (-32768)
  46.    #define SHRT_MAX      32767
  47.    #define USHRT_MAX     65535
  48.  
  49.    #define INT_MIN       (-2147483647 - 1)
  50.    #define INT_MAX       2147483647
  51.    #define UINT_MAX      0xffffffff          /* 4294967295  */
  52.  
  53.    #define LONG_MIN      (-2147483647L - 1)
  54.    #define LONG_MAX      2147483647
  55.    #define ULONG_MAX     0xffffffff          /* 4294967295U */
  56.  
  57.    #ifdef __cplusplus
  58.       }
  59.    #endif
  60.  
  61. #endif
  62.  
  63. #pragma info( none )
  64. #ifndef __CHKHDR__
  65.    #pragma info( restore )
  66. #endif
  67. #pragma info( restore )
  68.