aboutsummaryrefslogtreecommitdiff
path: root/libc/include/stdlib.h
diff options
context:
space:
mode:
authorFranklin Wei <frankhwei536@gmail.com>2015-02-14 10:55:22 -0500
committerFranklin Wei <frankhwei536@gmail.com>2015-02-14 10:55:22 -0500
commitef4cc242dc8ad04320d19af22931fcbdbf670c13 (patch)
tree50af19ff8e207870e2fdbad6d2a9ea669c901da8 /libc/include/stdlib.h
parentca1c4f58224404d4361e8ca16837e48c88c0ee38 (diff)
downloadkappa-ef4cc242dc8ad04320d19af22931fcbdbf670c13.zip
kappa-ef4cc242dc8ad04320d19af22931fcbdbf670c13.tar.gz
kappa-ef4cc242dc8ad04320d19af22931fcbdbf670c13.tar.bz2
kappa-ef4cc242dc8ad04320d19af22931fcbdbf670c13.tar.xz
Stuff
Diffstat (limited to '')
-rw-r--r--libc/include/stdlib.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libc/include/stdlib.h b/libc/include/stdlib.h
index 990d77a..a6e27f2 100644
--- a/libc/include/stdlib.h
+++ b/libc/include/stdlib.h
@@ -1,3 +1,6 @@
+#ifndef _STDLIB_H_
+#define _STDLIB_H_
+
/* this is by no means standards-compliant... but who cares? :P */
/* NOT reentrant! */
@@ -6,7 +9,10 @@ char* itoa(int val, int base);
#define RAND_MAX ((1U << 31) - 1)
#define MIN(x,y) ((x<y)?x:y)
+#define MAX(x,y) ((x>y)?x:y)
unsigned int rand(void);
void srand(unsigned int);
int abs(int);
+
+#endif