Mail Archives: djgpp/1998/06/09/18:45:48
Erik Max Francis wrote:
>
> *p++ = getchar(s);
>
> are undefined. "Undefined," by the ANSI standard, means that _no_
> restrictions are imposed -- crashing or emailing the President of the
> United States is perfectly ANSI compliant.
Slight modification here: that last expression _is_ defined, because p
is postfix-incremented only once in the entire expression. The return
value from getchar() will be stored in *p, and then p will be
incremented. Also, getchar() doesn't take any parameters.
--
---------------------------------------------------------------------
| John M. Aldrich | "Autocracy is based on the assumption|
| aka Fighteer I | that one man is wiser than a million |
| mailto:fighteer AT cs DOT com | men. Let's play that over again, |
| http://www.cs.com/fighteer | too. Who decides?" - Lazarus Long |
---------------------------------------------------------------------
- Raw text -