delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/03/03/04:45:10

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "Tõnu Aas" <tonu AT ids DOT ee>
Newsgroups: comp.os.msdos.djgpp
References: <baec0bf0 DOT 0403012323 DOT 10896c3 AT posting DOT google DOT com> <esd840d8dde7matafu4vd11bsvagshadkl AT 4ax DOT com> <baec0bf0 DOT 0403020529 DOT 8f42598 AT posting DOT google DOT com> <Xk01c.25898$aZ3 DOT 23018 AT fed1read04>
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.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019