INF: Newline Character \n Equivalent to ASCII Linefeed (0x0A)

ID Number: Q48885

5.00 5.10 6.00 6.00a 6.00ax | 5.00 5.10 6.00 6.00a

MS-DOS | OS/2

Summary:

In Microsoft C versions 5.0, 5.1, 6.0, 6.0a, and 6.0ax, the newline

character (\n) is equivalent to the ASCII linefeed character (hex 0A).

Thus, for files opened in text mode, CR/LF pairs are read in as

newline characters, and newline characters are written as CR/LF.

This information applies to STDIN, STDOUT, and STDERR, which are

opened in text mode by default.

When using strtok() to extract tokens separated by CR/LF in a file

opened in text mode, only \n must be used as a token delimiter.

Additional reference words: 5.00 5.10 6.00 6.00a 6.00ax