CertC-STR

Characters and Strings

Nested Rules

CertC-STR04

Use plain char for characters in the basic character set

CertC-STR05

Use pointers to const when referring to string literals

CertC-STR07

Use the bounds-checking interfaces for string manipulation

CertC-STR09

Don’t assume numeric values for expressions with type plain character

CertC-STR10

Do not concatenate different type of string literals

CertC-STR11

Do not specify the bound of a character array initialized with a string literal

CertC-STR30

Do not attempt to modify string literals

CertC-STR31

Guarantee that storage for strings has sufficient space for character data and the null terminator

CertC-STR32

Do not pass a non-null-terminated character sequence to a library function that expects a string

CertC-STR34

Cast characters to unsigned char before converting to larger integer sizes

CertC-STR37

Arguments to character-handling functions must be representable as an unsigned char

CertC-STR38

Do not confuse narrow and wide character strings and functions

Options