Re: [gentoo-user] C programming use of isascii(), ispunct() and isblank() fails

2006-10-10 Thread Zac Slade
On Friday 06 October 2006 09:31, Arturo 'Buanzo' Busleiman wrote: gcc -o digits -Wall -ansi -pedantic digits.c With that, I got the implicit declaration of function BLAH message. When that happens, and the man page does not list anything special, I usually add this at the beginning of the

Re: [gentoo-user] C programming use of isascii(), ispunct() and isblank() fails

2006-10-06 Thread Arturo 'Buanzo' Busleiman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Boyd Stephen Smith Jr. wrote: The C89 standard I work off of [1] doesn't list isascii or isblank. They must have been added in either C99 or by the GNU project. I'm not sure what standard (or standard + extensions) gcc defaults to, but I'll bet

Re: [gentoo-user] C programming use of isascii(), ispunct() and isblank() fails

2006-10-06 Thread Arturo 'Buanzo' Busleiman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 gcc -o digits -Wall -ansi -pedantic digits.c With that, I got the implicit declaration of function BLAH message. When that happens, and the man page does not list anything special, I usually add this at the beginning of the source file: #define

[gentoo-user] C programming use of isascii(), ispunct() and isblank() fails

2006-10-05 Thread Kevin O'Gorman
Why is it that using some of the macros from ctype.h fails to compile? In particular, the three mentioned in the subject: line. Try this: #include stdio.h #include ctype.h int main(int argc, char *argv[]) { int i; for (i = 0; i 256; i++) { printf(%3d: ,i); if (isalpha(i))

Re: [gentoo-user] C programming use of isascii(), ispunct() and isblank() fails

2006-10-05 Thread Boyd Stephen Smith Jr.
On Thursday 05 October 2006 16:10, Kevin O'Gorman [EMAIL PROTECTED] wrote about '[gentoo-user] C programming use of isascii(), ispunct() and isblank() fails': Why is it that using some of the macros from ctype.h fails to compile? In particular, [isascii, ispuncy, and isblank]. I'd be nice

Re: [gentoo-user] C programming use of isascii(), ispunct() and isblank() fails

2006-10-05 Thread Boyd Stephen Smith Jr.
On Thursday 05 October 2006 16:10, Kevin O'Gorman [EMAIL PROTECTED] wrote about '[gentoo-user] C programming use of isascii(), ispunct() and isblank() fails': Why is it that using some of the macros from ctype.h fails to compile? You code compiles fine for me. I'm using... hrm, an invalid

Re: [gentoo-user] C programming use of isascii(), ispunct() and isblank() fails

2006-10-05 Thread Kevin O'Gorman
On 10/5/06, Boyd Stephen Smith Jr. [EMAIL PROTECTED] wrote: On Thursday 05 October 2006 16:10, Kevin O'Gorman [EMAIL PROTECTED] wrote about '[gentoo-user] C programming use of isascii(), ispunct() and isblank() fails': Why is it that using some of the macros from ctype.h fails to compile? You

Re: [gentoo-user] C programming use of isascii(), ispunct() and isblank() fails

2006-10-05 Thread Mark Kirkwood
Kevin O'Gorman wrote: On 10/5/06, Boyd Stephen Smith Jr. [EMAIL PROTECTED] wrote: On Thursday 05 October 2006 16:10, Kevin O'Gorman [EMAIL PROTECTED] wrote about '[gentoo-user] C programming use of isascii(), ispunct() and isblank() fails': Why is it that using some of the macros from ctype.h

Re: [gentoo-user] C programming use of isascii(), ispunct() and isblank() fails

2006-10-05 Thread Bo Ørsted Andresen
On Friday 06 October 2006 04:32, Kevin O'Gorman wrote: gcc -Wall ctype.c -o ctype I get ctype.c:21: warning: implicit declaration of function 'isblank' $ gcc -std=gnu99 -Wall ctype.c -o ctype -- Bo Andresen pgpclOwMeZ9b7.pgp Description: PGP signature

Re: [gentoo-user] C programming use of isascii(), ispunct() and isblank() fails

2006-10-05 Thread Kevin O'Gorman
On 10/5/06, Bo Ørsted Andresen [EMAIL PROTECTED] wrote: On Friday 06 October 2006 04:32, Kevin O'Gorman wrote: gcc -Wall ctype.c -o ctype I get ctype.c:21: warning: implicit declaration of function 'isblank' $ gcc -std=gnu99 -Wall ctype.c -o ctype -- Bo Andresen Why would this need a

Re: [gentoo-user] C programming use of isascii(), ispunct() and isblank() fails

2006-10-05 Thread Bo Ørsted Andresen
On Friday 06 October 2006 06:49, Kevin O'Gorman wrote: On 10/5/06, Bo Ørsted Andresen [EMAIL PROTECTED] wrote: On Friday 06 October 2006 04:32, Kevin O'Gorman wrote: gcc -Wall ctype.c -o ctype I get ctype.c:21: warning: implicit declaration of function 'isblank' $ gcc -std=gnu99

Re: [gentoo-user] C programming use of isascii(), ispunct() and isblank() fails

2006-10-05 Thread Richard Fish
On 10/5/06, Kevin O'Gorman [EMAIL PROTECTED] wrote: Why would this need a GNU-specific flag? Aren't these things some level of POSIX? (I'm only guessing; FSF may well have added one or two, and I want to know either way). From the ctype.h header file: /* ISO C99 introduced one new