Re: [tobias.rehb...@web.de: Re: [OT] C programming question: reopen stdin]

2009-04-17 Thread Chris Rees
2009/4/16 Tobias Rehbein : > s/Good/Could/ > > > -- Forwarded message -- > From: Tobias Rehbein > To: Mel Flynn > Date: Thu, 16 Apr 2009 21:03:52 +0200 > Subject: Re: [OT] C programming question: reopen stdin > Am Tue, Apr 14, 2009 at 09:07:26PM +02

Re: [OT] C programming question: reopen stdin

2009-04-16 Thread Mel Flynn
On Thursday 16 April 2009 21:03:52 Tobias Rehbein wrote: > Am Tue, Apr 14, 2009 at 09:07:26PM +0200 schrieb Mel Flynn: > > On Tuesday 14 April 2009 20:13:00 Tobias Rehbein wrote: > > > I'm having a little trouble solving a specific problem in C. I want to > > > write a filter which reads data from

[tobias.rehb...@web.de: Re: [OT] C programming question: reopen stdin]

2009-04-16 Thread Tobias Rehbein
s/Good/Could/ --- Begin Message --- Am Tue, Apr 14, 2009 at 09:07:26PM +0200 schrieb Mel Flynn: > On Tuesday 14 April 2009 20:13:00 Tobias Rehbein wrote: > > > I'm having a little trouble solving a specific problem in C. I want to > > write a filter which reads data from stdin. After reading the u

Re: [OT] C programming question: reopen stdin

2009-04-16 Thread Tobias Rehbein
Am Tue, Apr 14, 2009 at 09:07:26PM +0200 schrieb Mel Flynn: > On Tuesday 14 April 2009 20:13:00 Tobias Rehbein wrote: > > > I'm having a little trouble solving a specific problem in C. I want to > > write a filter which reads data from stdin. After reading the user should > > be able to interact w

Re: [OT] C programming question: reopen stdin

2009-04-14 Thread Mel Flynn
On Tuesday 14 April 2009 20:13:00 Tobias Rehbein wrote: > I'm having a little trouble solving a specific problem in C. I want to > write a filter which reads data from stdin. After reading the user should > be able to interact with the program via stdin. Just open(2) /dev/tty. If tty is invalid,

[OT] C programming question: reopen stdin

2009-04-14 Thread Tobias Rehbein
Hi all. I'm having a little trouble solving a specific problem in C. I want to write a filter which reads data from stdin. After reading the user should be able to interact with the program via stdin. This means I have to reopen stdin but I don't know how to do this. I tried to solve this using du