any one know if this function is availible in qnx C? or any other function can replace this
QNX4 - this function is there as part of Watcom C libraries
QNX6 - get character input from console - getch() function is not part of libraries, but you can probably replace it by fgetc(stdin)
What you’re probably looking for is a function that will get characters from the console without echoing them. You do this under QNX by manipulating the terminal properies (note that this is generic POSIX code, not specific to QNX).
I’ve attached a sample: call SetConsoleToNonBlocking before calling getch, and call RestoreConsoleSettings when you’re done.