Versions Compared

Key

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

...

The following compliant example uses the fgets() to input a string and strtol() to input convert the string to an integer value and provides error checking . Error checking is provided to make sure that the value is a valid integer in the range of int.

...