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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no 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!news1.google.com!news.glorb.com!news.zanker.org!border2.nntp.ams.giganews.com!nntp.giganews.com!fr.ip.ndsoftware.net!proxad.net!freenix!oleane.net!oleane!skymaster!nobody From: "Jean-Pierre Rosen" Newsgroups: comp.lang.ada Subject: Re: how to know sizeof(int) Date: Wed, 4 Aug 2004 17:32:03 +0200 Organization: Adalog Message-ID: References: <5f59677c.0408040658.5976777a@posting.google.com> NNTP-Posting-Host: mailhost.axlog.fr X-Trace: s5.feed.news.oleane.net 1091635426 27215 195.25.228.57 (4 Aug 2004 16:03:46 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Wed, 4 Aug 2004 16:03:46 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Xref: g2news1.google.com comp.lang.ada:2544 Date: 2004-08-04T17:32:03+02:00 List-Id: "Evangelista Sami" a �crit dans le message de news:5f59677c.0408040658.5976777a@posting.google.com... > hello > > how can i know the result of a sizeof(int) (in C). > i did not find the approppriate stuffs in interfaces.C. > Interfaces.C.Int'Size/8 Interfaces.C.Int is the same as C Int, but the Size attributes is in bits, not bytes (OK, I assume here that a byte is 8 bits :-). Note that sizeof is *not* a regular function (a regular function could not have a type as the parameter). It is handled very specially in the C compiler, therefore there is no way you could get to it from another language. -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr