Re: c question & buffer
Re: c question & buffer
- Subject: Re: c question & buffer
- From: "Justin C. Walker" <email@hidden>
- Date: Wed, 29 Mar 2006 17:20:17 -0800
On Mar 29, 2006, at 17:04 , Michael wrote:
On Mar 29, 2006, at 4:40 PM, Jason Bobier wrote:
............ that the Run Log is line buffered.
Hi Jason,
The significance of this is?
Look at "man stdio", and check the paragraph where it discusses
buffering of I/O. The short answer is that if an input (to your
program) stream is buffered, the system will wait until the buffer is
full, or EOF is seen, before returning to your program from a read
request.
Normally, terminal I/O is either "line buffered" (read returns when a
NL is seen; that's "newline") or unbuffered (reads return with
whatever is available).
K&R have a discussion of this (in my version, probably way older than
yours, it's pretty rudimentary).
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Enhancement of the Director's Income
--------
When LuteFisk is outlawed,
Only outlaws will have LuteFisk
--------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden