Mail Archives: djgpp/1996/11/30/23:53:37
John M. Aldrich wrote:
> Joe Wright wrote:
>
> > Shame on you John. In Unix '\n' is 0x0A, a linefeed. '\r' is '0x0D',
> > the carriage return (CR). But you knew that..
>
> Yeah; I just forgot. Shame on me. ;) Which one is it on the Mac,
> anyway?
The Mac end-of-line sequence is a single CR.
Note that it's important to point out that \n is _always_ a LF in a C
program. It's only when you're dealing with text streams that the
translation is done -- and it's done automatically, so you don't have to
worry.
Generally if you're dealing with C and have to worry about the end-of-line
convention, you're not using things as they're meant to be used.
--
Erik Max Francis | max AT alcyone DOT com
Alcyone Systems | http://www.alcyone.com/max/
San Jose, California | 37 20 07 N 121 53 38 W
&tSftDotIotE | R^4: the 4th R is respect
"But since when can wounded eyes see | If we weren't who we were"
- Raw text -