Date: Sat, 28 Jun 1997 16:45:27 +0800 (GMT) From: Orlando Andico To: csantill cc: djgpp AT delorie DOT com Subject: Re: Newbie for loop/data type problem In-Reply-To: <33B4CBA2.40D6@lausd.k12.ca.us> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Sat, 28 Jun 1997, csantill wrote: > from: csantill AT lausd DOT k12 DOT ca DOT us > > I'm having a problem w/a stupid for loop(or maybe I have newbie luck & I > just found a bug in GCC v2.72). Ok, I know chars are byte values, but > they seemed to be signed in DJGPP (ANSI C dictates that they are > unsigned; but then again, DJGPP isn't ANSI C or ANSI anything else for [..] AFAIK GCC is one of the most ANSI-compliant C compilers out there. If you really want ANSI nitpicking compliance, try: gcc -Wall -pedantic -ansi As for your problem, why not just declare your counter variable as an unsigned char? and oh yes, chars need not be byte values. I think 16-bit chars are getting popular (the UNICODE set). Under NT chars are UNICODE I think. ----------------------------------------------------------------------- Orlando Alcantara Andico WWW: http://www2.mozcom.com/~orly/ Email: orly AT mozcom DOT com ICBM: 14 deg. 30' N, 120 deg. 59' E POTS: (+632) 932-2385