I am new to C programming file descriptor concept , working in an already developed code base. I have no idea regarding the following file descriptor concept .
Please waiting for your fast response.
Thanks
Anes P A
Code:
if (misc->playing == -1 || misc->cd_type != CDIO_DISC_MODE_CD_DA)
{
fd_set rfds;
struct timeval tv;
FD_ZERO (&rfds);
FD_SET (0, &rfds);
tv.tv_sec = 0;
tv.tv_usec = 100000;
// pause till a key has been pressed or 0.1 misc->elapsed_seconds are elapsed
select (1, &rfds, NULL, NULL, &tv);
} // if
Thanks
Anes P A
Comment