2. Embedded QUEL for C : EQUEL Statement Syntax for C : String Literals
 
Share this page                  
String Literals
You can use either double quotes (") or single quotes (') to delimit string literals in EQUEL/C. Be sure that you begin and end each string literal with the same delimiter.
Whichever quote mark you use, you can embed it as part of the literal itself. Just precede it with a backslash. For example:
##   append comments
##   (field1 = "a double \" quote is in this string")
or
##   append comments
##   (field1 = 'a single \' quote is in this string')
To include the backslash character as part of the string, precede it with another backslash.
To continue a string literal to additional lines, use the backslash character (\). The preprocessor ignores the backslash and the following newline character, so that the following line can continue both the string and any further components of the EQUEL statement. Any leading spaces on the next line are considered part of the string. This follows the C convention. For example, the following EQUEL statements are legal:
##   message 'Please correct errors found in updating \
the database tables.'

##   append to employee (empname = "Freddie \
Mac", empnum = 222)