function that reads characters without ener in c
hello, I' m trying to find a function in c that could read a character when i type it, without having to press enter.
eg : if i'd like to read a string character by character and after reading each one to check if the user typed '.' which function shall i use? thank you. |
man getc, getchar, etc...
*** EDIT *** I did not see this was in the non*NIX forums, but still getc should be available, but not the man page. |
Quote:
For choice 2, you can use something like is demonstrated in the following code: Code:
#include <stdio.h> |
Quote:
|
Quote:
|
Quote:
|
All times are GMT -5. The time now is 04:01 PM. |