From owner-freebsd-questions@FreeBSD.ORG Mon Jun 29 02:27:47 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 ED01D1065816 for ; Mon, 29 Jun 2009 02:27:47 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-qy0-f186.google.com (mail-qy0-f186.google.com [209.85.221.186]) by mx1.freebsd.org (Postfix) with ESMTP id 9B58A8FC17 for ; Mon, 29 Jun 2009 02:27:47 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: by qyk16 with SMTP id 16so4138370qyk.3 for ; Sun, 28 Jun 2009 19:27:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=vwAVahaZ0DANfz3QnFLP4oTns63OqLZJiHOQwr1KmLk=; b=bt6XFavlCYIHfNCGkqO4JxKCF28OzflAWmTMz0bY+0EVPdMBeLMmpYWYLSiXiD7vR9 7NVFzAQhGw3UvCeg0SeUEL1z+prxp1ekO3gkGMy4Fp98g4f6xtq7jK/17AgIkaFRecMV xuO4VM6DKc/fydhw45tu32OVmu7yit0eX2Rgo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=OvJ8PFGx0acnIGcmumQyAY9nNmZ7MiAU2x4MEyzQQTKXu8N3K9co0s+VNFodFmIx5v YRVL71kgVkqXtLRIMdDWaujZ9Mls0zsJEfsd43NnvRPxJE14lINp2J820f1U6Utb71X7 S7Y9HiCqDF2xw0pb5WDccY8Yk2BgpZ97FjnTU= Received: by 10.224.89.71 with SMTP id d7mr4510670qam.17.1246242466841; Sun, 28 Jun 2009 19:27:46 -0700 (PDT) Received: from aryeh-desktop.istudentunion.com (ool-44c0cd7a.dyn.optonline.net [68.192.205.122]) by mx.google.com with ESMTPS id 6sm13734695qwd.32.2009.06.28.19.27.46 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 28 Jun 2009 19:27:46 -0700 (PDT) Message-ID: <4A4826A5.6020506@gmail.com> Date: Sun, 28 Jun 2009 22:27:49 -0400 From: "Aryeh M. Friedman" User-Agent: Thunderbird 2.0.0.22 (X11/20090626) MIME-Version: 1.0 To: Glen Barber References: <4A48252C.1090808@gmail.com> <4ad871310906281926i54fdac53u1d4681c8060e4d36@mail.gmail.com> In-Reply-To: <4ad871310906281926i54fdac53u1d4681c8060e4d36@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: 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 02:27:48 -0000 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)