| delorie.com/archives/browse.cgi | search |
| From: | Miguel Guerreiro <a14616 AT aaual DOT ualg DOT pt> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: typedef'ing a 24-bit integer |
| Date: | Wed, 26 May 1999 18:15:32 +0100 |
| Organization: | Servico de News da Universidade do Algarve |
| Lines: | 26 |
| Message-ID: | <374C2C34.F91FB02@aaual.ualg.pt> |
| References: | <37459ABF DOT FF51CA41 AT aaual DOT ualg DOT pt> |
| NNTP-Posting-Host: | 10.11.85.130 |
| Mime-Version: | 1.0 |
| X-Mailer: | Mozilla 4.07 [en] (WinNT; I) |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Miguel Guerreiro wrote:
> How can you do somethin kinda like this:
>
> typedef int24 (24-bit integer)
> typedef uint24 (24-bit unsigned int)
>
> I want it to take *exactly* 24-bit of space
>
> Thanks in advance
What about other languages?...
I think that in pascal you can do something like this:
type
uint24 = $0..$FFFFFF
end
But then (if it's possible) how can I include that in C code (using
DJGPP)
Thanx again
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |