From: Eric Jacoboni <jaco@neottia.net>
Subject: Re: how to know sizeof(int)
Date: Wed, 04 Aug 2004 17:18:15 +0200
Date: 2004-08-04T17:18:16+02:00 [thread overview]
Message-ID: <m21xinexu0.fsf@mac.scrogneugneu.org> (raw)
In-Reply-To: 5f59677c.0408040658.5976777a@posting.google.com
evangeli@cnam.fr (Evangelista Sami) writes:
> how can i know the result of a sizeof(int) (in C).
> i did not find the approppriate stuffs in interfaces.C.
What about the Size attribute ?
procedure Test_Interface_C is
Int_C : Int := 100;
begin
Put_Line(Int'Image(Int'First) & ".." & Int'Image(Int'Last)) -- -2147483648.. 2147483647
Put_Line(Integer'Image(Int_C'Size)); -- 32 here
end;
--
�ric Jacoboni, n� il y a 1395076360 secondes
next prev parent reply other threads:[~2004-08-04 15:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-04 14:58 how to know sizeof(int) Evangelista Sami
2004-08-04 15:18 ` Eric Jacoboni [this message]
2004-08-04 15:26 ` Adrian Knoth
2004-08-04 15:32 ` Jean-Pierre Rosen
2004-08-04 19:06 ` Ludovic Brenta
2004-08-05 8:14 ` Jean-Pierre Rosen
2004-08-07 4:09 ` Keith Thompson
2004-08-04 21:52 ` Adrian Knoth
2004-08-05 8:16 ` Jean-Pierre Rosen
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox