🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3694

Re: Why "long long" doesn't work.

#3694
From: Daniel Villeneuve
Date: Thu, 10 Aug 1995 13:39
16 lines
1281 bytes
In article <409fr9$guo@goanna.cs.rmit.edu.au> ok@goanna.cs.rmit.edu.au (Richard A. O'Keefe) writes:

> Environment enquiry problem:
>     I have a type, or a variable of that type.
>     How do I find out its properties _portably_?
>     This includes but is not limited to things like minimum value, maximum
>     value, printf format, scanf format, number of bits, representation (is
>     it 2s-comp, 1s-comp, sign-and-magnitude, ieee 754, whatever), ...

The required alignment of that type is also of interest, when writing a
specialized malloc() portably.  gcc's __alignof__ extension may be used
as a model/example.

Daniel Villeneuve
GERAD/Ecole Polytechnique de Montreal
Technical Details
Message-ID: <DANIELV.95Aug10093924@crt0.crt>
Path: arc1-ca.pugleaf.net!CC.UMontreal.CA!news
References: <3uvcje$c3q@goanna.cs.rmit.edu.au> <3v34qv$hev@newsbf02.news.aol.com> <3va1o3$aas@goanna.cs.rmit.edu.au> <3vq4p5$8dv@wsrcom.wsr.ac.at> <409fr9$guo@goanna.cs.rmit.edu.au>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c
Path: arc1-ca.pugleaf.net!CC.UMontreal.CA!news
From: danielv@crt0.crt (Daniel Villeneuve)
Subject: Re: Why "long long" doesn't work.
In-Reply-To: ok@goanna.cs.rmit.edu.au's message of 9 Aug 1995 15:07:53 +1000
Message-ID: <DANIELV.95Aug10093924@crt0.crt>
Sender: news@cc.umontreal.ca (Administration de Cnews)
Organization: Universite de Montreal
References: <3uvcje$c3q@goanna.cs.rmit.edu.au> <3v34qv$hev@newsbf02.news.aol.com>
 <3va1o3$aas@goanna.cs.rmit.edu.au> <3vq4p5$8dv@wsrcom.wsr.ac.at>
 <409fr9$guo@goanna.cs.rmit.edu.au>
Date: Thu, 10 Aug 1995 13:39:24 GMT