Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!mailrus!accuvax.nwu.edu!gumball!engber From: engber@gumball.ils.nwu.edu (Mike Engber) Newsgroups: comp.sys.mac.programmer Subject: \n vs \r in Think C Summary: how does stdio handle them? Message-ID: <3906@accuvax.nwu.edu> Date: 15 Feb 90 15:34:31 GMT References: <10556@pucc.Princeton.EDU> Sender: news@accuvax.nwu.edu Reply-To: engber@gumball (Mike Engber) Distribution: usa Organization: The Institute for the Learning Sciences Lines: 14 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