Date: Sun, 28 Jun 2009 22:46:12 -0400 From: Glen Barber <glen.j.barber@gmail.com> To: Vince Sabio <vince@vjs.org> Cc: freebsd-questions@freebsd.org Subject: Re: what character is a physical newline Message-ID: <4ad871310906281946g7ed9c1d6m477fd3dfecc8d330@mail.gmail.com> In-Reply-To: <p05200f50c66dd8cc3cd7@192.168.5.248> References: <4A48252C.1090808@gmail.com> <4ad871310906281926i54fdac53u1d4681c8060e4d36@mail.gmail.com> <4A4826A5.6020506@gmail.com> <4ad871310906281930k644b5d5fnf448decf8e489c4c@mail.gmail.com> <p05200f50c66dd8cc3cd7@192.168.5.248>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jun 28, 2009 at 10:38 PM, Vince Sabio<vince@vjs.org> wrote: > ** At 22:30 -0400 on 06/28/2009, Glen Barber wrote: >> >> On Sun, Jun 28, 2009 at 10:27 PM, Aryeh M. Friedman wrote: >> =A0>> >>>> >>>> =A0What do you mean exactly? =A0What language(s)? =A0If I understand y= our >>>> =A0question correctly, the C / C++ / Java / PHP (and I think Perl) >> >> =A0>> 'newline' character is '\n' >> =A0> >>> >>> =A0I meant what ascii character does \n actual correspond to (I assume = <CR> >>> but >> >> =A0> just making sure) > > No, CR is a carriage return, which is a \r in C, and is an ASCII 13 (hex > 0D). > > "Newline" is a line feed (LF), which is a \n in C, and is an ASCII 10 (he= x > 0A) > >> Oh. =A0IIRC, CR is the DOS way, and LR is the POSIX way. > > Not exactly; CRLF is the DOS way, CR is the Macintosh way, and LF is > Unix/Posix. > > HTH. > Thanks for correcting me. Goes to show that bad advice is worse than no advice. :) --=20 Glen Barber
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4ad871310906281946g7ed9c1d6m477fd3dfecc8d330>