X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=linux.c;h=708f933eb51df9f39ddee8e58e2235def8e6e7bd;hp=9bd3b13e45464f8b891b39e671bf08e429c526ad;hb=03ea69145938e4b01e7efc6be80a543bad1739c7;hpb=404aca234d55a8d9ba7b6573b3c100c940b42fe8 diff --git a/linux.c b/linux.c index 9bd3b13..708f933 100644 --- a/linux.c +++ b/linux.c @@ -1,6 +1,5 @@ #include #include -#include void randomize(void) { srand((int)time(NULL)); @@ -17,15 +16,3 @@ int min(int a, int b) { return b; } -int getch(void) { - char chbuf[1]; - struct termio oldstate, newstate; - ioctl(0,TCGETA,&oldstate); - newstate = oldstate; - newstate.c_iflag = 0; - newstate.c_lflag = 0; - ioctl(0,TCSETA,&newstate); - read(0, &chbuf, 1); - ioctl(0,TCSETA,&oldstate); -} -