NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
int getchar ( )
inline

Get character from stdin.

Returns the next character from the standard input (stdin). It is equivalent to getc with stdin as its argument. On the NXT this means wait for a button press and return the value of the button pressed.

Returns
The pressed button. See Button name constants.
Examples:
ex_getchar.nxc.