From owner-freebsd-questions@FreeBSD.ORG Mon Jun 29 02:26:20 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 96EE11065676 for ; Mon, 29 Jun 2009 02:26:20 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from mail-fx0-f218.google.com (mail-fx0-f218.google.com [209.85.220.218]) by mx1.freebsd.org (Postfix) with ESMTP id AB13A8FC1A for ; Mon, 29 Jun 2009 02:26:19 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: by fxm18 with SMTP id 18so1634967fxm.43 for ; Sun, 28 Jun 2009 19:26:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=EeyR2MMD9CZbRBNe28wovcOjznpY6W9jRl32KeGg22o=; b=D77jRQGu1ro52F64VG+Ky38EZoOo8vHDQqmgGYTWrqCyPxt5AU0fdJjYM28nfen6Dn 7+DZFCdpdAckvEDS/2tkxMTkhNhhLJ+8M/Pv06vvbmQLLXWjgJy/NtydsAq1m6FYrbTv i7JW8G1MZhGui0geHa5UPf6Rsjvwv704K49Zg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=H/VuxAeDCTC/xfMx9XeQ7sUSFCCOA8CCAF3yosACq9qk1ZxGtrWTV5AHWtMeGhwhrM L61a6OvpM5NZp1PVoy3bFqeyRnoapwN9EMrufAqnjLbZl5Yim49hcjL2ownzNMWcbx6c xe/2MsB4kVcR5TQJ6p7erBfq0ginii+6Au34o= MIME-Version: 1.0 Received: by 10.204.52.146 with SMTP id i18mr6688090bkg.82.1246242378649; Sun, 28 Jun 2009 19:26:18 -0700 (PDT) In-Reply-To: <4A48252C.1090808@gmail.com> References: <4A48252C.1090808@gmail.com> Date: Sun, 28 Jun 2009 22:26:18 -0400 Message-ID: <4ad871310906281926i54fdac53u1d4681c8060e4d36@mail.gmail.com> From: Glen Barber To: "Aryeh M. Friedman" Content-Type: text/plain; charset=ISO-8859-1 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:26:21 -0000 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' -- Glen Barber