D
Digitalcoup
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.
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.