Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #10730

Re: portability issues and limits.h

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!nx01.iad01.newshosting.com!newshosting.com!69.16.185.11.MISMATCH!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date Thu, 22 Sep 2011 18:23:16 -0500
Message-ID <4E7BC366.2DA4@mindspring.com> (permalink)
Date Thu, 22 Sep 2011 19:23:18 -0400
From pete <pfiland@mindspring.com>
Reply-To pfiland@mindspring.com
Organization PF
X-Mailer Mozilla 3.04Gold (WinNT; I)
MIME-Version 1.0
Newsgroups comp.lang.c
Subject Re: portability issues and limits.h
References <c8bd942e-a376-4d25-afa7-4908798e9f5d@n35g2000yqf.googlegroups.com>
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
Lines 23
X-Usenet-Provider http://www.giganews.com
NNTP-Posting-Host 4.154.222.145
X-Trace sv3-AnnW4VdKRckWwQBj7sabfM9/mgzAcUx2MZKJs/EPNwk+YvV53HDpAxvZwKYKvAwkHaShWn160y86vLa!esgB7g3oqU2O9rAscwsIT5GV3r57oibrpQEjNDsLG6jUng76AYXK4rgUOMKSU/FV0XhCmQ72omX0!Iy46wLrboMc=
X-Abuse-and-DMCA-Info Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info Otherwise we will be unable to process your complaint properly
X-Postfilter 1.3.40
X-Original-Bytes 1723
Xref x330-a1.tempe.blueboxinc.net comp.lang.c:10730

Show key headers only | View raw


V.Subramanian, India wrote:

> '5.2.4.2.1 Sizes of integer types
> <limits.h>' :
> 
> The implementation-defined values shall be equal or greater in
> magnitude(absolute value) to those shown with the same sign.

> If I use the #defined macros INT_MIN and INT_MAX from limits.h, then
> under the implementation that I use, the corresponding values are
> -2147483648 and +2147483647 respectively whereas the ISO C99 Standard
> requires lower absolute values than these.

> Please explain.

The values on the implementation that you are using, are:

   "equal or greater in magnitude(absolute value)"

just as the standard requires.

-- 
pete

Back to comp.lang.c | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

portability issues and limits.h "V.Subramanian, India" <subramanian100in@yahoo.com> - 2011-09-22 07:32 -0700
  Re: portability issues and limits.h James Kuyper <jameskuyper@verizon.net> - 2011-09-22 10:50 -0400
  Re: portability issues and limits.h pete <pfiland@mindspring.com> - 2011-09-22 19:23 -0400

csiph-web