Re: [QUESTION] Problem with adding ascii chars...

From: George (greerga@circlemud.org)
Date: 02/13/99


On Sat, 13 Feb 1999, Christoffer Lundberg wrote:

>On Sat, 13 Feb 1999, George wrote:
>
>> On Sat, 13 Feb 1999, Christoffer Lundberg wrote:
>>
>> >} else if ((isascii(*ptr) && isprint(*ptr)) || (*ptr > 127)) {
>> [...]
>> >There must be some define where *ptr has it's limit set, but I cannot
>> >find it.
>>
>> Think 'signed char' variable.
>>
>> Solution? Make it unsigned.
>
>hmm, how?

unsigned char * ....;

--
George Greer
greerga@circlemud.org
http://www.circlemud.org/~greerga/


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST