Re: [9fans] C library function that reads up to a newline

2012-01-09 Thread erik quanstrom
On Mon Jan 9 04:57:17 EST 2012, faif...@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? if you're application is one where the producer is producing a line

Re: [9fans] C library function that reads up to a newline

2012-01-09 Thread Jani Lahtinen
Dont' think so, as you need a buffer to keep the line. On Mon, Jan 9, 2012 at 11:47 AM, faif 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? > >

[9fans] C library function that reads up to a newline

2012-01-09 Thread faif
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?