The Dink Network

Reply to Re: Maybe a bug

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
December 6th 2005, 02:37 AM
dinkdead.gif
millimeter
Peasant He/Him Canada
Millimeter is Wee-Lamm, Recording Artist. :-) 
I disagree.

if ((c = getc(in)) > 255)
//if not ascii char then c = # of
//char to read.

fread(pair,2,c-128,in);
//pair = *ptr to pair table
//2 = 2 char per set
//c-128 = # of char/2
//in = stream (script file)

else
{
if (c == '\r') c = '\n';
//if EOL end of line, do Carriage Return also.
if (c == 9) c = ' ';
//If tab, make it a single space
strchar(cbuf,c);
//Must be char. so load buffer with
//c = # of char to read.
}

so if c>255 then read_a_number_of_pairs
else CRLF
else Whitespace
else read to buffer size.

if c was intended to be only byte sized, then it would have been a waste to code it as a 2 byte address, considering the platform this was written to.

hth,
mm.