Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Apr 2009 10:53:09 +0100
From:      Chris Rees <utisoft@googlemail.com>
To:        Mel Flynn <mel.flynn+fbsd.questions@mailing.thruhere.net>,  freebsd-questions@freebsd.org
Subject:   Re: [tobias.rehbein@web.de: Re: [OT] C programming question: reopen stdin]
Message-ID:  <b79ecaef0904170253g78f46a6fk4a460e737c122eb8@mail.gmail.com>
In-Reply-To: <20090416191603.GA9220@sushi.pseudo.local>
References:  <20090416191603.GA9220@sushi.pseudo.local>

next in thread | previous in thread | raw e-mail | index | archive | help
2009/4/16 Tobias Rehbein <tobias.rehbein@web.de>:
> s/Good/Could/
>
>
> ---------- Forwarded message ----------
> From:=A0Tobias Rehbein <tobias.rehbein@web.de>
> To:=A0Mel Flynn <mel.flynn+fbsd.questions@mailing.thruhere.net>
> Date:=A0Thu, 16 Apr 2009 21:03:52 +0200
> Subject:=A0Re: [OT] C programming question: reopen stdin
> 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 sho=
uld
>> > 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.
>
> Thanks for this hint. I tried to implement an example. Good someone take =
a look
> at it and tell me if I did it right. Well, at least it works...
>
> The code is here:
>
> =A0 =A0 =A0 =A0http://gist.github.com/95320
>
> To avoid further spamming of the freebsd-questions mailing list: Could so=
meone
> point me to a good place to ask C programming questions?
>
> Regards
>
> =A0 =A0 =A0 =A0Tobias
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o=
rg"
>

http://groups.google.com/group/comp.lang.c

The oldest and probably most populated.

--=20
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b79ecaef0904170253g78f46a6fk4a460e737c122eb8>