We have seen that in a string the character sequence `\n' means a linefeed (see 2.4 Strings).
There are several other similar such special character sequences which represent useful characters that can't be typed in a string.
The following table shows all these sequences.
Note that there are some other similar sequences which are used to control formatting with built-in procedures like
These are listed where
WriteF and similar procedures are described (see 11.3.1 Input and output functions).
Sequence Meaning -------------------------------------- \0 A null (ASCII zero) \a An apostrophe ' \b A carriage return (ASCII 13) \e An escape (ASCII 27) \n A linefeed (ASCII 10) \q A double quote (ASCII 34) \t A tab (ASCII 9) \\ A backslash \
An apostrophe can also be produced by typing two apostrophes in a row in a string. It's best to use this only in the middle of a string, where it's nice and obvious:
WriteF('Here\as an apostrophe.\n') /* Using \a */ WriteF('Here"s another apostrophe.\n') /* Using " */
Go to the Next or Previous section, the Detailed Contents, or the Amiga E Encyclopedia.