From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c0fb538211c02258 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news2.google.com!proxad.net!feeder2-1.proxad.net!news4-e.free.fr!not-for-mail X-Attribution: Jaco Newsgroups: comp.lang.ada Subject: Re: how to know sizeof(int) References: <5f59677c.0408040658.5976777a@posting.google.com> From: Eric Jacoboni Organization: Rogntutdju & Associates Date: Wed, 04 Aug 2004 17:18:15 +0200 Message-ID: User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (darwin) Cancel-Lock: sha1:DpCoBNQc1Q/rukZOuwJAlW98hCU= MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Date: 04 Aug 2004 17:18:16 MEST NNTP-Posting-Host: 81.56.238.119 X-Trace: 1091632696 news4-e.free.fr 31412 81.56.238.119:36570 X-Complaints-To: abuse@proxad.net Xref: g2news1.google.com comp.lang.ada:2539 Date: 2004-08-04T17:18:16+02:00 List-Id: 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