Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Wiki Markup
Input and output are mapped into logical data streams, whose properties are more uniform than their various inputs and outputs. Two forms of mapping are supported, one for text streams and one for binary streams \[[ISO/IEC 9899-1999|AA. C References#ISO/IEC 9899-1999]\]. They differ in the actual representation of data as well as in the functionality of some C99 functions.

...

Characters may have to be altered to conform to differing conventions for representing text in the host environment. As a consequence, data read/written to or from a text stream will not necessarily compare equal to the stream's byte content.

...

The ungetc() function causes the file position indicator to be "unspecified" until all pushed back characters are read therefore. Therefore, care must be taken that file-position-related functions are not used while this is true.

...

A binary stream is an ordered sequence of characters that can transparently record internal data. As a consequence, data read/written to or from a binary stream will necessarily compare equal to the stream's byte content.

...