segmentation fault isdigit() cuasing the problem.

vartan vartank25@att.net
Thu Jul 2 05:55:00 GMT 2009


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.c
gcc (Debian 4.3.2-1.1) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ch2-13.c
Type: text/x-csrc
Size: 919 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20090702/65a5c3cd/attachment.bin>


More information about the Gcc-bugs mailing list