Arun wrote:
I recently came to know that using int86 function with interrupt number
22 we can identify keystrokes.
I want to know whether this is in any way different from getch()
function.
any help on this is much appreciated.
<OT>
It depends on the implementation. In one system getch() might end up
calling the same code (BIOS?) as int86 with service no. 22 might. In
another system int86() may not even be available while getch() may be.
This is something you should not worry about to write programs.
In fact, sticking to pure ISO standard C is a good way to start out.
Then as your programming skill improves and you need platform specific
functionality, you can learn such specific stuff as the above.
Look up the description for getch() and int86() at the following URL.
If you absolutely need to know their implementation in DJGPP, you can
look up the sources, as it is Free Software.
http://www.delorie.com/djgpp/doc/libc/
</OT>
Finally, in future, please post only standard C related questions to
this group. Post platform specific questions like the above to their
respective groups like comp.os.msdos.djgpp. That way, you're assured of
the most relavent and accurate response.