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]
/
linux.c
1
#include <stdlib.h>
2
#include <time.h>
3
4
void randomize(void) {
5
srand((int)time(NULL));
6
}
7
8
9
int max(int a, int b) {
10
if (a > b) return a;
11
return b;
12
}
13
14
int min(int a, int b) {
15
if (a < b) return a;
16
return b;
17
}
18