String literals
-
One or more characters surrounded by double quotes,
as in "xyz".
-
Initialized with the characters contained in the double quotes.
-
Have static storage duration and type ``array of characters.''
-
Escape sequences
may also be used in string literals.
A double quote within the string must be escaped with a backslash.
New-line characters are not valid within a string.
-
Adjacent string literals are concatenated into a single string.
A null character,
\0,
is appended to the result of the concatenation, if any.
-
String literals are also known as ``string constants.''
Next topic:
Wide string literals
Previous topic:
Wide characters and multibyte characters
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003