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
-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
-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
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))
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
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
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
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
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
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
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
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
12 matches
Mail list logo