X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=os2.c;h=1670895bbe5e753e80ef0b9bd2c0c5ed98646541;hb=998ff9c48426dd89c25b56ab59a0c8e2b6986355;hp=ca0eb54264c33687bceb26f3d16abbac308a2888;hpb=48763357ef69f0b711fc332b13e2170ab914d881;p=super-star-trek.git diff --git a/os2.c b/os2.c index ca0eb54..1670895 100644 --- a/os2.c +++ b/os2.c @@ -1,31 +1,6 @@ #include #include -#include -#include void randomize(void) { srand((int)time(NULL)); } - - -int max(int a, int b) { - if (a > b) return a; - return b; -} - -int min(int a, int b) { - if (a < b) return a; - return b; -} - -int getch(void) { - char chbuf[1]; - struct termio oldstate, newstate; - ioctl(0,TCGETA,&oldstate); - newstate = oldstate; - newgame.state.c_iflag = 0; - newgame.state.c_lflag = 0; - ioctl(0,TCSETA,&newstate); - read(0, &chbuf, 1); - ioctl(0,TCSETA,&oldstate); -} \ No newline at end of file