From: mh AT mike DOT franken DOT de (Michael Hirmke) Subject: Re: some unusual errors 19 Sep 1998 23:06:21 -0700 Message-ID: <718$hZK$pfB.cygnus.gnu-win32@mike.franken.de> References: <199809182005 DOT QAA03634 AT venus DOT solidum DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: gnu-win32 AT cygnus DOT com 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 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 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 AT mike DOT franken DOT de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".