Subject: Re: isprint() and isblank()
To: Greywolf <greywolf@starwolf.com>
From: Matthias Buelow <mkb@mukappabeta.de>
List: tech-userlevel
Date: 01/21/2001 06:41:15
Greywolf <greywolf@starwolf.com> writes:
>What in the _world_ are you talking about?!? It's perfectly reasonable to
>do multiple comparisons/evaluations so long as you are not changing the
>value of the thing being evaluated in the process.
>
>i.e. if (((c) == 'a') || ((c) == 'b') || ((c) == '0xa9')) { ; }
>
>is perfectly legal, even in the context of isblank, because nothing
>is being modified between evaluations.
Consider:
while (isblank(getchar()))
;
mkb