Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jun 2009 06:56:48 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        "Aryeh M. Friedman" <aryeh.friedman@gmail.com>
Cc:        Glen Barber <glen.j.barber@gmail.com>, freebsd-questions@freebsd.org
Subject:   Re: what character is a physical newline
Message-ID:  <4A4857A0.6040809@infracaninophile.co.uk>
In-Reply-To: <4A4826A5.6020506@gmail.com>
References:  <4A48252C.1090808@gmail.com>	<4ad871310906281926i54fdac53u1d4681c8060e4d36@mail.gmail.com> <4A4826A5.6020506@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig659A101F2CBC873A79D19E08
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable

Aryeh M. Friedman wrote:
> Glen Barber wrote:
>> On Sun, Jun 28, 2009 at 10:21 PM, Aryeh M.
>> Friedman<aryeh.friedman@gmail.com> wrote:
>> =20
>>> 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 n=
eed
>>> windows cross compatibility)
>>>    =20
>>
>> 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'
>>
>>  =20
> I meant what ascii character does \n actual correspond to (I assume <CR=
>=20
> 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

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
                                                  Kent, CT11 9PW


--------------enig659A101F2CBC873A79D19E08
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAkpIV6YACgkQ8Mjk52CukIxEbgCggdd3d2f9m/iBk+p5bP0q1sAs
NdAAoIzAXCkI1UjsooAs1kEw6UCffoDt
=2nYc
-----END PGP SIGNATURE-----

--------------enig659A101F2CBC873A79D19E08--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A4857A0.6040809>