home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional Developers Kit 1992 November / Disc01 / Disc01.mdf / cppbeta / incla / limits.h__ / LIMITS.H
Encoding:
C/C++ Source or Header  |  1992-09-27  |  2.1 KB  |  68 lines

  1. #ifndef __limits_h
  2.    #define __limits_h
  3.  
  4.    #pragma info( none )
  5.    #ifndef __CHKHDR__
  6.       #pragma info( none )
  7.    #endif
  8.    #pragma info( restore )
  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 Set/2 Beta Version                                        */
  20.    /*  Copyright (C) International Business Machines Corp., 1991,1992  */
  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.    #pragma info( none )
  62.    #ifndef __CHKHDR__
  63.       #pragma info( restore )
  64.    #endif
  65.    #pragma info( restore )
  66.  
  67. #endif
  68.