Node: Multi-line Strings, Next: , Previous: Escaped Newlines, Up: C Extensions



String Literals with Embedded Newlines

As an extension, GNU CPP permits string literals to cross multiple lines without escaping the embedded newlines. Each embedded newline is replaced with a single \n character in the resulting string literal, regardless of what form the newline took originally.

CPP currently allows such strings in directives as well (other than the #include family). This is deprecated and will eventually be removed.