Re: stdin help
- From: "Chuck F. " <cbfalconer@xxxxxxxxx>
- Date: Wed, 04 Jan 2006 12:16:15 -0500
Alastair wrote:
.... snip ...sajjanharudit@xxxxxxxxx wrote:
.... snip ...
what i need is a small technique whereby which I can check the stdin for an input, without prompting the user(the user will enter a key as and when he wishes, not depending on the program) AND without halting the execution (as getc() does) AND without displaying the key on the screen AND should store the pressed key to variable
.... snip ...
One process would do all the waiting (fgetc(stdin) amd all that), the other process can periodically check on the results with a simple "if(is_there_message_waiting())" type decision.
Interrupts is another method, but it all boils down to the same thing.
Please don't answer off-topic queries with off-topic material. Limit your reply to suggestions as to where to look. The reason is that the experts who can correct any errors you might make are not here to make those corrections, so bad advice may not be caught.
-- "If you want to post a followup via groups.google.com, don't use the broken "Reply" link at the bottom of the article. Click on "show options" at the top of the article, then click on the "Reply" at the bottom of the article headers." - Keith Thompson More details at: <http://cfaj.freeshell.org/google/> .
- Follow-Ups:
- Re: stdin help
- From: Kenny McCormack
- Re: stdin help
- From: Alastair
- Re: stdin help
- References:
- stdin help
- From: sajjanharudit@xxxxxxxxx
- Re: stdin help
- From: Alastair
- stdin help
- Prev by Date: Re: regarding "goto" in C
- Next by Date: Re: SSCANF
- Previous by thread: Re: stdin help
- Next by thread: Re: stdin help
- Index(es):
Relevant Pages
|