Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Edited by sciSpider v2.1 (sch jbop) (X_X)@==(Q_Q)@

...

The following non-compliant code example simply illustrates shows calling the standard string handling function strlen() with a plain character string, a signed character string, and an unsigned character string:

...

Wiki Markup
\[[ISO/IEC 9899-:1999|AA. C References#ISO/IEC 9899-1999]\] Section 6.2.5, "Types"
\[[MISRA 04|AA. C References#MISRA 04]\] Rule 6.1, "The plain char type shall be used only for the storage and use of character values"

...

STR03-A. Do not inadvertently truncate a NULLnull-terminated byte string      07. Characters and Strings (STR)       STR05-A. Use pointers to const when referring to string literals