...
Wiki Markup |
---|
These functions truncate strings that exceed the specified limits. Additionally, some functions such as {{strncpy()}} do not guarantee that the resulting string is NULLnull-terminated \[[STR32-C. Null-terminate byte strings as required]\]. |
...
An exception to this rule applies if the intent of the programmer was to intentionally truncate the NULLnull-terminated byte string. To be compliant with this standard, this intent must be clearly stated in comments.
...