Date: Tue, 14 Apr 2009 21:07:26 +0200 From: Mel Flynn <mel.flynn+fbsd.questions@mailing.thruhere.net> To: freebsd-questions@freebsd.org Cc: Tobias Rehbein <tobias.rehbein@web.de> Subject: Re: [OT] C programming question: reopen stdin Message-ID: <200904142107.26678.mel.flynn%2Bfbsd.questions@mailing.thruhere.net> In-Reply-To: <20090414181300.GA3813@sushi.pseudo.local> References: <20090414181300.GA3813@sushi.pseudo.local>
next in thread | previous in thread | raw e-mail | index | archive | help
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, then you don't have to expect a user either. -- Mel
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904142107.26678.mel.flynn%2Bfbsd.questions>