![]() |
![]() |
0258 | ![]() |
||||
![]() | |||||||
| Syntax errors | REFERENCE - ISO:C90-6.1.4 String Literals - Syntax | ||||||
A string literal must begin and end on the same logical line. It appears that the terminating '"' character may not be recognised because it is preceded by a backslash character '\' and has become part of an escape sequence. To represent a backslash character within a string literal, use the sequence '\\'. For example:
/*PRQA S 753,2017,3122,3211,3408,3625 ++*/
char *pca = "This literal ends with a backslash character \\";
char *pcb = "This literal is not terminated \"; /* Message 0258 */
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |