This is the mail archive of the
mailing list for the GCC project.
RE: About Keyboards - URGENT!!!!
- To: "Nelson Guedes Paulo Junior" <npaulo at linux dot ime dot usp dot br>,"Lista GCC" <gcc-help at gcc dot gnu dot org>
- Subject: RE: About Keyboards - URGENT!!!!
- From: "Virgil Palanciuc" <Virgil dot Palanciuc at cs dot pub dot ro>
- Date: Fri, 5 May 2000 15:13:34 +0300
As a first note, I don't think this is the right place for this kind of
> I need a function that reads n leters from the keyboard
> that folow some rule.
I don't think anybody will write the program for you, so you should have
given a much shorter description for your problem.
You can use read(...) to do the job, and specify '0' as the first
parameter (0 means stdin - i.e. the keybord, generally). You should also do
before any call to your function. (I'm not sure the fcntl call is correct,
you should check the manpages).
> And, is desired too that the function runs on Windows/Dos/Unix/Linux
AFAICT, this will work both on windows/dos and on linux. However,
depending on the compiler you use (under dos), you may need to include
different header files.
> Need response urgent.....
> Nelson Guedes Paulo Junior
> E-mail: <email@example.com> UIN: 2489382 (Tender AML)
> HomePage: (Em eterna construção)