Hi,
I have faced the following code, can you help me to write a standard version of it:
I get:Code:struct timeval tv; int bioskey() { fd_set readfds; FD_ZERO (&readfds); FD_SET (fileno(stdin), &readfds); tv.tv_sec=0; tv.tv_usec=0; select(16, &readfds, 0, 0, &tv); return (FD_ISSET(fileno(stdin), &readfds)); }
Code:error: call to undeclared function 'fileno';