X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Tõnu Aas" Newsgroups: comp.os.msdos.djgpp References: <4045a682$1 AT news DOT infonet DOT ee> <8d4d405go3mm3kvb70drkoat31ukdep52o AT 4ax DOT com> Subject: Re: 16 bit integers Date: Thu, 4 Mar 2004 12:32:51 +0200 Lines: 12 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: <404705d5$1@news.infonet.ee> X-Trace: news.infonet.ee 1078396373 ids.ids.ee (4 Mar 2004 12:32:53 +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 > Portable assumptions are: char holds at least 8 bits, int at least 16, > long at least 32: pick the appropriate size for the range of integers > you have to deal with. Avoid C99 stdint.h if you want to be portable > to most existing implementations. You can create your own stdint.h if "existing implementations" havent one. Its much easier than using #ifdefs all over you code to maintain portability. Tõnu.