[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: fork or printf problem



Hi

Kernel takes care of that. printf need not worry about it. That's the
strength of unix. That's what you mean by 'everything is a file in
unix...'

 Bye
   Shridhar

Sumit Rangawala wrote:

> Hi
>        This question is the one i posted some time ago.
> One thing i still couldn't understand is that  how printf distinguish
> between a terminal and a file.
> for it everything it has to do is to write to a file pointer ( fp = 1 )
> .  How then the buffering changes with the type of file pointed by file
> pointer 1.
>