Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: included wide-char text

Invoking getc() and putc, putc() or their wide-character analogues getwc() and putwc() with stream arguments that have side effects may cause unexpected results because these functions may be implemented as unsafe macros. The stream arguments to these macros may be evaluated more than once. See PRE31-C. Do not perform side effects in arguments to unsafe macros for more information.

This does not apply to the character argument in putc(),  or the wide-character argument in putwc() which is guaranteed to be evaluated exactly once.

...