This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: some unusual errors


Hi Michael,

[...]
>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???

As all is<xxx> functions it takes an *int* or *unsigned char* !

man isspace

NAME
       isalnum,  isalpha,  isascii,  isblank,  iscntrl,  isdigit,
       isgraph,  islower,  isprint,  ispunct,  isspace,  isupper,
       isxdigit - character classification routines

SYNOPSIS
       #include <ctype.h>

       int isalnum (int c);
       int isalpha (int c);
       int isascii (int c);
       int isblank (int c);
       int iscntrl (int c);
       int isdigit (int c);
       int isgraph (int c);
       int islower (int c);
       int isprint (int c);
       int ispunct (int c);
       int isspace (int c);
       int isupper (int c);
       int isxdigit (int c);

DESCRIPTION
       These functions check whether c, which must have the value
       of an unsigned char or EOF, falls into a certain character
       class according to the current locale.
[...]

Bye.
Michael.
--
Michael Hirmke           | Telefon +49 (911) 557999
Georg-Strobel-Strasse 81 | FAX     +49 (911) 557664
90489 Nuernberg          | E-Mail  mailto:mh@mike.franken.de
                         | WWW     http://aquarius.franken.de/
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]