#include <stdio.h>
#include "tic/tic_c.h"
#if defined(MMSYS_linux)
#include <sys/select.h>
int kbhit()
{
struct timeval tv = { 0L, 0L };
fd_set fds;
FD_ZERO(&fds);
FD_SET(0, &fds);
return select(1, &fds, NULL, NULL, &tv);
}
#else
#include <conio.h>
int kbhit() { return _kbhit(); }
#endif
const int iTic=0;
int main(int argc, char **argv) {
do {
double rdFirst;
double rdSecond;
printf("first half=%g, second half=%g\n", rdFirst, rdSecond);
}
} while (!kbhit());
return 0;
lFail:
return 2;
}