...
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