Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

limits.h

00001 /* limits.h stdc header
00002    Copyright (C) 2003 Free Software Foundation, Inc.
00003    Written by Stephane Carrez (stcarrez@nerim.fr)       
00004 
00005 This file is free software; you can redistribute it and/or modify it
00006 under the terms of the GNU General Public License as published by the
00007 Free Software Foundation; either version 2, or (at your option) any
00008 later version.
00009 
00010 In addition to the permissions in the GNU General Public License, the
00011 Free Software Foundation gives you unlimited permission to link the
00012 compiled version of this file with other programs, and to distribute
00013 those programs without any restriction coming from the use of this
00014 file.  (The General Public License restrictions do apply in other
00015 respects; for example, they cover modification of the file, and
00016 distribution when not linked into another program.)
00017 
00018 This file is distributed in the hope that it will be useful, but
00019 WITHOUT ANY WARRANTY; without even the implied warranty of
00020 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00021 General Public License for more details.
00022 
00023 You should have received a copy of the GNU General Public License
00024 along with this program; see the file COPYING.  If not, write to
00025 the Free Software Foundation, 59 Temple Place - Suite 330,
00026 Boston, MA 02111-1307, USA.  */
00027 
00028 #ifndef _LIMITS_H
00029 #define _LIMITS_H
00030 
00031 /* Get gcc limits.h too  */
00032 #include_next <limits.h>
00033 
00034 /* Minimum and maximum values a `signed long long int' can hold.  */
00035 #   define LLONG_MAX    9223372036854775807LL
00036 #   define LLONG_MIN    (-LLONG_MAX - 1LL)
00037 /* Maximum value an `unsigned long long int' can hold.  (Minimum is 0.)  */
00038 #   define ULLONG_MAX   18446744073709551615ULL
00039 
00040 #define SIZE_T_MAX (65535)
00041 
00042 #define INTMAX_MIN LONG_MIN
00043 #define INTMAX_MAX LONG_MAX
00044 #define UINTMAX_MAX ULLONG_MAX
00045 
00046 #endif