Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: xref EXP40-C

...

Do not attempt to modify a string literal. Instead, use a named array of characters to create a modifiable copy of a string literal.

This rule is an instance of EXP40-C. Do not modify constant values.

Noncompliant Code Example

...