9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Jani Lahtinen <jani.lahtinen8@gmail.com>
To: comp.os.plan9@googlegroups.com,
	Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] C library function that reads up to a newline
Date: Mon,  9 Jan 2012 13:11:36 +0200	[thread overview]
Message-ID: <CAGEy=5+u7rk-RJTVDz6t11in3tQUHVfY46CaVsv9cUEJShmqEA@mail.gmail.com> (raw)
In-Reply-To: <19066037.1659.1326018719041.JavaMail.geo-discussion-forums@vbdz6>

[-- Attachment #1: Type: text/plain, Size: 307 bytes --]

Dont' think so, as you need a buffer to keep the line.

On Mon, Jan 9, 2012 at 11:47 AM, faif <faifgnu@gmail.com> wrote:

> read(2) reads up to N bytes but doesn't stop on newlines. Brdline(2)
> looks like a good candidate for that. Are there any functions
> outside Bio that behave similarly?
>
>

[-- Attachment #2: Type: text/html, Size: 547 bytes --]

  reply	other threads:[~2012-01-09 11:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-09  9:47 faif
2012-01-09 11:11 ` Jani Lahtinen [this message]
2012-01-09 14:18 ` erik quanstrom

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGEy=5+u7rk-RJTVDz6t11in3tQUHVfY46CaVsv9cUEJShmqEA@mail.gmail.com' \
    --to=jani.lahtinen8@gmail.com \
    --cc=9fans@9fans.net \
    --cc=comp.os.plan9@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).