Versions Compared

Key

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

The strlen() function computes the length of a string. It returns the number of characters that precede the terminating NULL null character. Errors can occur when assumptions are made about the type of data being passed to strlen(), e.g., in cases where binary data has been read from a file instead of textual data from a user's terminal.

...