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

2009-04-17 Thread Chris Rees
2009/4/16 Tobias Rehbein tobias.rehb...@web.de: s/Good/Could/ -- Forwarded message -- From: Tobias Rehbein tobias.rehb...@web.de To: Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net Date: Thu, 16 Apr 2009 21:03:52 +0200 Subject: Re: [OT] C programming question

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 with the

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

2009-04-16 Thread Tobias Rehbein
s/Good/Could/ ---BeginMessage--- 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

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 stdin.

[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

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,