forlang.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.
C Strings
                                             Up Contents Index Back
─────C Strings──────────────────────────────────────────────────────────────
 
     String values in the C language are terminated with null characters
     (CHAR(0)). Specify this type of string with a standard string
     constant followed by the character C. The constant is then
     interpreted as a C-language constant. Backslashes are treated as
     escapes, and a null character is automatically appended to the end
     of the string.
 
     String Escape Sequences
 
     Sequence         Character
 
     \a               Alert (bell)
 
     \b               Backspace
 
     \f               Form feed
 
     \n               New line
 
     \r               Carriage return
 
     \t               Horizontal tab
 
     \v               Vertical tab
 
     \xhh             Hexadecimal bit pattern (where 'hh' represents a
                       hexadecimal value)
 
     \'               Single quote*
 
     \"               Double quote
 
     \\               Backslash
 
     \onnn            Octal bit pattern (where 'nnn' represents octal
                       values)
 
     *In FORTRAN you must enter \'' to indicate this escape sequence.
                                    -♦-