diff options
| author | Franklin Wei <frankhwei536@gmail.com> | 2015-03-01 14:20:47 -0500 |
|---|---|---|
| committer | Franklin Wei <frankhwei536@gmail.com> | 2015-03-01 14:20:47 -0500 |
| commit | c7252588ebb95f97631e9470778c69afa00c35b5 (patch) | |
| tree | 06d760878e18f6cddbe4305cddd4d5dfa74529f8 /libc | |
| parent | b8f54e63d2b8f8007c580adf2a6034c98a0f2eaa (diff) | |
| download | kappa-c7252588ebb95f97631e9470778c69afa00c35b5.zip kappa-c7252588ebb95f97631e9470778c69afa00c35b5.tar.gz kappa-c7252588ebb95f97631e9470778c69afa00c35b5.tar.bz2 kappa-c7252588ebb95f97631e9470778c69afa00c35b5.tar.xz | |
Huge restructure
Diffstat (limited to 'libc')
| -rw-r--r-- | libc/include/stdio.h | 7 | ||||
| -rw-r--r-- | libc/include/stdlib.h | 30 | ||||
| -rw-r--r-- | libc/include/string.h | 4 |
3 files changed, 0 insertions, 41 deletions
diff --git a/libc/include/stdio.h b/libc/include/stdio.h deleted file mode 100644 index 49966cf..0000000 --- a/libc/include/stdio.h +++ /dev/null @@ -1,7 +0,0 @@ -int printf(const char* fmt, ...) __attribute__ ((format (printf, 1, 2)));; -int puts(const char*); -int putchar(int); - -/* sets the I/O functions, allows easy switching between text mode and VBE */ -void set_putchar(void (*func)(int)); -void set_puts(void (*func)(const char*)); diff --git a/libc/include/stdlib.h b/libc/include/stdlib.h deleted file mode 100644 index f55f0f5..0000000 --- a/libc/include/stdlib.h +++ /dev/null @@ -1,30 +0,0 @@ -#ifndef _STDLIB_H_ -#define _STDLIB_H_ - -#include <stddef.h> -#include <stdio.h> -#include <stdint.h> - -/* this is by no means standards-compliant... but who cares? :P */ - -/* NOT reentrant! */ -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) - -uint64_t rand64(void); -unsigned int rand(void); -void srand(uint64_t); -int abs(int); -void *malloc(size_t); -int snprintf(char*, int, const char*, ...); -void assert_fail(const char*, const char*, int); -int toupper(int); -int tolower(int); - -#define assert(x) if(!(x))assert_fail(__func__, __FILE__, __LINE__); - -#endif diff --git a/libc/include/string.h b/libc/include/string.h deleted file mode 100644 index 05050a0..0000000 --- a/libc/include/string.h +++ /dev/null @@ -1,4 +0,0 @@ -#include <stddef.h> -int strlen(const char*); -void* memset(void*, int, size_t); -void* memcpy(void*, void*, size_t); |