James Richard Tyrer wrote:
> Is there something wrong with this code:
>
> NetworkManager-0.8.build/src/NetworkManagerPolicy.c:
>
> #include <ctype.h>
>
> if (isblank (*p) || (*p == '\0')) {
>
> ?? GCC-4.3.4 doesn't like it:
>
> NetworkManagerPolicy.c:272: error: implicit declaration of function
> 'isblank'
Yep. The Standard C provides somehthing which is similar to what is
meant, but the name is "isspace(.)". "isblank(.)" is a GNU
extension.
Are you compiling with strict ANSI compliance?
isspace(.) looks for space, tab, vertical tab, newline, return,
and formfeed.
isblank(.) looks only for space and tab.
> Any suggestions?
>
> Note that it does compile OK if I add the: "configure" paramater:
>
> --disable-more-warnings
Uh, it doesn't compile any differently, you just don't see the
warning. That function has no prototype in scope.
Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I speak only for myself, and I am unanimous in that!
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page