From owner-freebsd-questions@FreeBSD.ORG Mon Jun 29 15:16:03 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2695610656A4 for ; Mon, 29 Jun 2009 15:16:03 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id D1D048FC2B for ; Mon, 29 Jun 2009 15:16:02 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id n5TFCUNB081011; Mon, 29 Jun 2009 11:12:30 -0400 (EDT) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id n5TFCU2t081010; Mon, 29 Jun 2009 11:12:30 -0400 (EDT) (envelope-from jerrymc) Date: Mon, 29 Jun 2009 11:12:30 -0400 From: Jerry McAllister To: Matthew Seaman Message-ID: <20090629151229.GE80667@gizmo.acns.msu.edu> References: <4A48252C.1090808@gmail.com> <4ad871310906281926i54fdac53u1d4681c8060e4d36@mail.gmail.com> <4A4826A5.6020506@gmail.com> <4A4857A0.6040809@infracaninophile.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A4857A0.6040809@infracaninophile.co.uk> User-Agent: Mutt/1.4.2.2i Cc: "Aryeh M. Friedman" , freebsd-questions@freebsd.org Subject: Re: what character is a physical newline X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jun 2009 15:16:03 -0000 On Mon, Jun 29, 2009 at 06:56:48AM +0100, Matthew Seaman wrote: > Aryeh M. Friedman wrote: > >Glen Barber wrote: > >>On Sun, Jun 28, 2009 at 10:21 PM, Aryeh M. > >>Friedman wrote: > >> > >>>I am writting a parser (tokenizes all characters among other things) and > >>>need to know what control char is equivelent to a newline (I do not need > >>>windows cross compatibility) > >>> > >> > >>What do you mean exactly? What language(s)? If I understand your > >>question correctly, the C / C++ / Java / PHP (and I think Perl) > >>'newline' character is '\n' > >> > >> > >I meant what ascii character does \n actual correspond to (I assume > >but just making sure) > > On Unix, the end of line character is NL (012 octal, 10 decimal, 0x0a hex) > -- > see ascii(7). Some people know it as Ctrl-J Gee, wouldn't you know it, in FreeBSD, there is even a man page for it. ////jerry > > Cheers, > > Matthew > > -- > Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard > Flat 3 > PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate > Kent, CT11 9PW >