473,385 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Compile problem

I have been working on a small application out of boredum and have ran into a
slight problem. In one of the lines I used: if(isblank(u_name[count_element])
== 0) {

at compile time I get the error: warning: implicit declaration of function
`isblank'.

Simple workaround I just used isspace() instead, but I would still like to know
what the problem is. Doing my own investigation I found that
/usr/include/ctype.h does have isblank() is defined and of course the manpage
does show it as being under ctype.h. Now in /usr/include/linux/ctype.h
/usr/lib/bcc/include/ctype.h isspace is not defined at all. Is isblank() a
nonstandard function in ctype? I really don't mind having the easy work around
but I always want to know why something failed that I tried. Any help is
appreciated.
Nov 13 '05 #1
2 3749
On 03 Nov 2003 02:46:34 GMT, di********@aol.comnospam (Digitalcoup)
wrote in comp.lang.c:
I have been working on a small application out of boredum and have ran into a
slight problem. In one of the lines I used: if(isblank(u_name[count_element])
== 0) {

at compile time I get the error: warning: implicit declaration of function
`isblank'.

Simple workaround I just used isspace() instead, but I would still like to know
what the problem is. Doing my own investigation I found that
/usr/include/ctype.h does have isblank() is defined and of course the manpage
does show it as being under ctype.h. Now in /usr/include/linux/ctype.h
/usr/lib/bcc/include/ctype.h isspace is not defined at all. Is isblank() a
nonstandard function in ctype? I really don't mind having the easy work around
but I always want to know why something failed that I tried. Any help is
appreciated.


There is a standard C library function isspace() prototyped in
<ctype.h>, and there has been since the original 1989 ANSI C standard.
There is another function named isblank() that was added to <ctype.h>
by the 1999 major update to the C standard.

Your compiler might be operating in a C89 conforming mode where it
does not recognize newer C99 prototypes. You will need to ask in a
Linux programming group, such as news:comp.os.linux.development.apps,
as to how to get your compiler to recognize this. I would suggest you
specify your compiler's version Linux version when you ask there.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++ ftp://snurse-l.org/pub/acllc-c++/faq
Nov 13 '05 #2
From: Jack Klein

<snip most>
You will need to ask in a
Linux programming group, such as news:comp.os.linux.development.apps,
as to how to get your compiler to recognize this. I would suggest you
specify your compiler's version Linux version when you ask there.


Yes, I was just about to post that I found my own answer. I compiled with gcc
-o 'filename' -Wall -Werror -ansi -pedantic -std=c99 'filename.c' and it worked
just fine. Thanks for your input though.
--
Hackattack v1.0 download: http://www.geocities.com/s1gterm/

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: janeaustine50 | last post by:
Python's InteractiveInterpreter uses the built-in compile function. According to the ref. manual, it doesn't seem to concern about the encoding of the source string. When I hand in an unicode...
5
by: Carmine Cairo | last post by:
Hi, I'm working on a project and today I've note a little problem during the compile fase. Here a little piece of code: // 1st version welldone = 0; size = p->getSize(); backbone = new...
5
by: Brice Prunier | last post by:
Here under 4 schemas i'm working with ( it may be long: sorry...) The context is the following : Resident.xsd imports Person.xsd and includes Common.xsd ( anonimous schema: no TargetNamespace )...
10
by: Jean-David Beyer | last post by:
I have some programs running on Red Hat Linux 7.3 working with IBM DB2 V6.1 (with all the FixPacks) on my old machine. I have just installed IBM DB2 V8.1 on this (new) machine running Red Hat...
9
by: serge | last post by:
I have a stored procedure that is over 1000 + lines of code. When i try to compile I get the following error: ABC.TEST123: 1285: SQL0104N An unexpected token "END" was found following " END...
10
by: Bart Goeman | last post by:
Hi, I have a question about how to put redundant information in data structures, initialized at compile time. This is often necessary for performance reasons and can't be done at run time (data...
10
by: Chris LaJoie | last post by:
Our company has been developing a program in C# for some time now, and we haven't had any problems with it, but just last night something cropped up that has me, and everyone else, stumped. I...
6
by: Thomas Connolly | last post by:
I have 2 pages referencing the same codebehind file in my project. Originally the pages referenced separate code behind files. Once I changed the reference to the same file, everything worked...
6
by: Tom | last post by:
I am developing my pages on my development machine and then copying to the production server. I am not pre-compiling, I am using the 'dynamic compile' feature. This is working fine except that...
0
by: Jérôme Le Bougeant | last post by:
Hello (and sorry for my English), I downloaded the VideoCapture module on the http://videocapture.sourceforge.net/ site. I tested it with a webcam and that functions. Now I want to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.