[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: isprint/isspace segfaulting
From: |
Andreas Schwab |
Subject: |
Re: isprint/isspace segfaulting |
Date: |
Wed, 10 Dec 2003 10:42:42 +0100 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (gnu/linux) |
Raj <address@hidden> 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, address@hidden
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."