[uClibc] isnumeric() and ctype.h

Manuel Novoa III mjn3 at codepoet.org
Tue Aug 24 12:51:24 UTC 2004


Hello Marc,

On Tue, Aug 24, 2004 at 08:54:58AM +0200, Marc Leeman wrote:
> Regarding my footnote comment last week, here is a more elaborate
> description.
> 
> Sorry, I haven't fixed it, I just don't include the ctypes file. If I am
> not mistaking, I'll look it up and fix it (if needed). Please check the
> followingi (don't mind the space):
> 
> -- host --
> [mleeman at gemini mleeman]$ powerpc-linux-uclibc-gcc -Wall -DCTYPE -o test
> isnumeric.c
> [mleeman at gemini mleeman]$ cp test
> ~/targets/target.uclibc.02/root/ppcstream/
> -- target ---
> # ./test 
> 18: 23 is NOT a number
> 25: NOT a space
> 
> -- host --
> [mleeman at gemini mleeman]$ powerpc-linux-uclibc-gcc -Wall -o test
> isnumeric.c
> isnumeric.c: In function `main':
> isnumeric.c:14: warning: implicit declaration of function `isdigit'
> isnumeric.c:21: warning: implicit declaration of function `isspace'
> [mleeman at gemini mleeman]$ cp test
> ~/targets/target.uclibc.02/root/ppcstream/
> -- target --
> # ./test 
> 15: 23 is a number
> 25: NOT a space

What are your uClibc config settings for ctype and locale options?

  grep CTYPE  include/bits/uClibc_config.h
  grep LOCALE include/bits/uClibc_config.h

Manuel



More information about the uClibc mailing list