projects
/
super-star-trek.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Make the internal pager actually work. In the process, remove getch()
[super-star-trek.git]
/
os2.c
1
#include <stdlib.h>
\r
2
#include <time.h>
\r
3
\r
4
void randomize(void) {
\r
5
srand((int)time(NULL));
\r
6
}
\r
7
\r
8
\r
9
int max(int a, int b) {
\r
10
if (a > b) return a;
\r
11
return b;
\r
12
}
\r
13
\r
14
int min(int a, int b) {
\r
15
if (a < b) return a;
\r
16
return b;
\r
17
}
\r