delorie.com/archives/browse.cgi | search |
From: | "Bryan Edds" <dkmoore2 AT dragonbbs DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | 256 variable holder... Quick Question! |
Date: | Sat, 12 Feb 2000 22:44:29 -0500 |
Organization: | Posted via Supernews, http://www.supernews.com |
Lines: | 12 |
Message-ID: | <saeug83qivs52@corp.supernews.com> |
X-Complaints-To: | newsabuse AT supernews DOT com |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 5.00.2919.6600 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2919.6600 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |