X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Tõnu Aas" Newsgroups: comp.os.msdos.djgpp References: Subject: Re: 16 bit integers Date: Wed, 3 Mar 2004 11:33:48 +0200 Lines: 16 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: ids.ids.ee Message-ID: <4045a682$1@news.infonet.ee> X-Trace: news.infonet.ee 1078306434 ids.ids.ee (3 Mar 2004 11:33:54 +0200) Organization: INFONET.EE To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > Use "short"'s instead of Int ( which are really long ). They can be signed > or unsigned, and are guaranteed > to be 16 bits Use C99 standard stdint.h header and you can control integer data type sizes in portable way. And be warned that there is another thing called alignment which has not portable way to control. Its amazing that C & C++ languages have not instruments to use even basic data types in portable way. Tõnu.