• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: c question & buffer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >c question (From: Michael <email@hidden>)
 >Re: c question (From: "Justin C. Walker" <email@hidden>)
 >Re: c question (From: Michael <email@hidden>)
 >Re: c question (From: Jason Bobier <email@hidden>)
 >Re: c question & buffer (From: Michael <email@hidden>)

  • Prev by Date: Re: c question & buffer
  • Next by Date: Re: fnfErr for resource files
  • Previous by thread: Re: c question & buffer
  • Next by thread: Re: c question
  • Index(es):
    • Date
    • Thread