Mail Archives: djgpp/1998/12/21/13:56:52
From: | "David Christensen" <nospam AT nospam DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
References: | <75lokv$srg$1 AT tron DOT sci DOT fi>
|
Subject: | Re: Working on tilebased game...
|
Date: | Mon, 21 Dec 1998 10:55:12 -0800
|
Lines: | 37
|
X-Newsreader: | Microsoft Outlook Express 4.72.3110.1
|
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3
|
NNTP-Posting-Host: | 209.3.225.83
|
Message-ID: | <367e9961.0@news.california.com>
|
X-Trace: | 21 Dec 1998 10:54:25 -0800, 209.3.225.83
|
Organization: | "California.com, The California Internet Company"
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Programmer wrote in message <75lokv$srg$1 AT tron DOT sci DOT fi>...
>The writer of the faq file used 'unsigned char', because its
lenght is from
>0 to 127 right?.
Variables of type "unsigned char" usually hold values from 0
through 255, inclusive.
Variables of type "signed char" usually hold values from -128
through 127, inclusive.
Variables of type "char" are typically the same as "signed char",
but some compilers let you make them "unsigned char".
There is something out there called Unicode (?) for multi-lingual
character sets. It may or may not affect the above statements.
See the standard C library header file "limits.h" and consider
using the macros SCHAR_MIN, SCHAR_MAX, UCHAR_MAX, CHAR_MIN, and/or
CHAR_MAX.
Also see "assert.h" and consider the using the function "assert()"
if you have to have "char" one way or the other.
David
--
PS The "from" address is bogus to avoid spam.
My username is dchrist and my domain is dnai.com.
- Raw text -