TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
ASML C Coding Standard
Search

Rule:  6.4.5.aChecked automatically with code checker

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 */