[comp.sys.mac.programmer] \n vs \r in Think C

engber@gumball.ils.nwu.edu (Mike Engber) (02/15/90)

I was experimenting in Think C (4.0) and it seems that the stdio routines
don`t properly distinguish \n and \r.

I was under the impression that on the Mac, lines were separated by
returns, \r. But whenever I read I get newlines, \n, instead. Similarly,
when I print out \n's, \r`s seem to really get output.

Now this may be a feature to help portability across UNIX systems that
use newlines as line separators, but I was unable to find this documented
in the manuals.

What gives?

-ME