delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/14/17:51:14

From: Damian Yerrick <MYNAMEISd_yerrick AT hotmail DOT comNO2CANNEDHAM>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: 256 variable holder... Quick Question!
Organization: Pin Eight Software http://pineight.8m.com/
Message-ID: <d2ffassqo7su1oj3n6tfiut1nll8dhpahr@4ax.com>
References: <saeug83qivs52 AT corp DOT supernews DOT com>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Lines: 25
X-Trace: /Kw5eD9grOYJ/MTCQtFOjkwX9zOVwc7NUKu4ee5RM3T2hCtqL9PCqmGlfT3epwKBnXbk8WYFFRom!9PrFm7b2UE23vS2+gniwf7p8P/xAGQyatjT6froIGsbsKoRmEyjDObKcUNqZUchmbWbOM4z0cq1y!MKn6B3Q=
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Mon, 14 Feb 2000 08:29:12 GMT
Distribution: world
Date: Mon, 14 Feb 2000 08:29:12 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Sat, 12 Feb 2000 22:44:29 -0500, "Bryan Edds"
<dkmoore2 AT dragonbbs DOT com> wrote:

>Okay, I need a variable that stores no more than 256. I used to use this to
>hold a number anywhere from 0 to 255;
>    unsigned __int8 varname;
>    varname = 255;
>It worked well and was very fast. But, this does not work in DJGPP. The
>smallest type I can use is a SHORT INT which is too slow for a graphics
>display, and a waste since I only use 256 colors. I need something like
>__INT8 to store numbers, but now it's gone. Any explanation is welcome, but
>if it gets complicated, please be thorough. I just now broke into the DJGPP
>scene.

'unsigned char' is virtually guaranteed (on popular systems) to be an
unsigned eight-bit integer.

-- 
Damian Yerrick  http://yerricde.tripod.com/
Comment on story ideas: http://home1.gte.net/frodo/quickjot.html
AOL is sucks! Find out why: http://anti-aol.org/faqs/aas/
View full sig: http://www.rose-hulman.edu/~yerricde/sig.html

This is McAfee VirusScan. Add these two lines to your .sig to
prevent the spread of .sig viruses.  http://www.mcafee.com/

- Raw text -


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