This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: some unusual errors
- To: Michael Richardson <mcr at solidum dot com>
- Subject: Re: some unusual errors
- From: "Matthew O. Persico" <mpersico at erols dot com>
- Date: Sat, 19 Sep 1998 23:43:27 -0400
- CC: gnu-win32 at cygnus dot com
- References: <199809182005.QAA03634@venus.solidum.com>
Michael Richardson wrote:
>
> I get a lot of warnings like this:
>
> strtod.c:1239: warning: subscript has type `char'
>
> This line of code is actually:
>
> for(s = s00; isspace(*s); s++)
>
> which confuses me. What, if not "char" should isspace() take???
>
int. In the bad old days (pre-ANSI) ints and chars swapped positions
more often than Clinton does, apparently. Try this (UNTESTED!)
for(s = s00; isspace((int)*s); s++)
You could have found this out a lot faster from any good 'C' book, esp
K&R.
--
Get "The Perl Cookbook"
Christansen and Torkington.
O'Reilly. ISBN 1-56592-243-3
FAQ on serious steriods!
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".