This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: isprint/isspace segfaulting
- From: Andreas Schwab <schwab at suse dot de>
- To: Raj <raju at mailandnews dot com>
- Cc: libc-alpha at sources dot redhat dot com, bug-glibc at gnu dot org
- Date: Wed, 10 Dec 2003 10:42:42 +0100
- Subject: Re: isprint/isspace segfaulting
- References: <3FD6AF6A.3020509@mailandnews.com>
Raj <raju@mailandnews.com> writes:
> PS: In the below program if i declare 'ch' as 'char', then things work
> fine. Only when it is declared as 'int' does the problem shows up.
Don't do it then.
> Is this expected ?
Undefined behaviour can mean everything.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."