[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OBSD Programming] how to wait for input?



Quoting Otto Moerbeek (otto_(_at_)_drijf_(_dot_)_net):
> On Tue, 17 Aug 2004, [ISO-8859-1] Christian Sch?fer wrote:
> 
> > getc() will try to read forever when there is nothing send. we need a
> > safe way to know if there actaully _is_ something to read first.
> 
> check select(2) and poll(2).
> 
> And grab a copy of "Advanced Programming in the Unix Environment"
> by Stevens for more info.

Read it from cover to cover.  Then read his other books too.



Visit your host, monkey.org