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 code compiles fine for me. I'm using... hrm, an invalid profile...
well, gcc --version reports 'gcc (GCC) 4.1.1 (Gentoo 4.1.1-r1)'
> if (ispunct(i)) punctf(" punct");
I did get a link error, because you haven't defined "punctf"; I'll bet you
meant "printf".
--
Kevin O'Gorman, PhD
Hmmm. I did indeed mean printf -- a goof in s/// stuff. Anyway, even after
that,when I
gcc -Wall ctype.c -o ctype
I get
ctype.c:21: warning: implicit declaration of function 'isblank'
and I get more of these if I use -ansi. I can get rid of it by removing -Wall,
but my normal practice is the opposite: I add -Werror. I'd just like to know
how to make it clean.
++ kevin
--
gentoo-user@gentoo.org mailing list