C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
printf Escape Sequences
                                             Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
     The escape sequences allow you to use a sequence of characters to
     represent special characters. Escape sequences are as follows:
 
     Seq.   Name              Seq.   Name
 
     \a     Alert (bell)      \?     Literal quotation mark
     \b     Backspace         \'     Single quotation mark
     \f     Formfeed          \"     Double quotation mark
     \n     Newline           \\     Backslash
     \r     Carriage return   \ddd   ASCII character in octal notation
     \t     Horizontal tab    \xdd   ASCII character in hex notation
     \v     Vertical tab
 
     Note that for characters notated in hexadecimal, the compiler
     ignores all leading zeros. It establishes the end of the hex-
     specified escape character when it encounters either the first
     non-hex character or more than two hex characters──not including
     leading zeros. In the latter case, it reports an error and ignores
     all characters beyond the second one.
 
     See also: printf Formatting Table
                                    -♦-