What is the C API for reading the keyboard scancodes in userspace ?

This is a discussion on What is the C API for reading the keyboard scancodes in userspace ? within the C Programming forums, part of the General Programming Boards category; That is the question,
Kindly guide !...

>I forgot to mention in my OP that i am using Linux
I assumed you were using Linux since you mentioned termios. Oh well, you can lead a newbie to the FAQ, but you can't make him read.

>conio.h doesn't work there !
I know that. Read all the way to the bottom of the FAQ and you'll find a Linux friendly example using termios. The piece of code you "discovered" looks to be a knockoff of our FAQ's version with slightly different formatting. The end result is the same, but you probably wasted more effort than was necessary by failing to read the FAQ in its entirety.

>It simpy doesn't read them . Can some one point out why ?
Perhaps because they don't do anything meaningful except in conjunction with another key? How much do you know about scancodes?