Versions Compared

Key

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

...

The definition does not state that the write() function will stop copying characters into the file if a null character is encountered. Therefore, when writing a C string in to a file using the write() function, always use the size of the buffer string plus 1 (for the null character) as the size parameter.

...