Re: segmentation fault isdigit() cuasing the problem.

2009-07-06 Thread Jean Christophe Beyler
This is not a bug. In the man page of the isdigit: These functions check whether c, which must have the value of an unsigned char or EOF, falls into a certain character class according to the current locale. You should first test your value with a isascii if using isdigit. Your code has a maj

segmentation fault isdigit() cuasing the problem.

2009-07-01 Thread vartan
dear maintainer: the fallowing is a small sample of the code that contains all the info to reproduce the problem. the C library function isdigit() fails and causes segmention fault when the input is is not numeric like xx. COMPILE COMMAND : >> gcc -ansi --version -Wall -o ch2-13.out-lm ch2-13