Legacy Mac OS X Reference Library Apple Developer Connection

Next: , Previous: Escaped Newlines, Up: C Extensions



5.17 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.

Did this document help you? Yes It's good, but... Not helpful...