Synopsis: | A character string literal token shall not be adjacent to a wide string literal token. |
Language: | C |
Severity Level: | 2 |
Category: | Lexical Elements |
Description: |
Justification String operation will give undefined results in C89. Example #define HELLO "Hello" #define LHELLO L"Hello" #define WORLD "World." #define LWORLD L" World." const char *text1 = HELLO LWORLD; /* WRONG */ const char *text2 = HELLO WORLD; /* RIGHT */ |