diff options
Diffstat (limited to 'include/gba')
-rw-r--r-- | include/gba/gba.h | 1 | ||||
-rw-r--r-- | include/gba/libc.h | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/include/gba/gba.h b/include/gba/gba.h index 42ae3cdde..19b65dbca 100644 --- a/include/gba/gba.h +++ b/include/gba/gba.h @@ -7,5 +7,6 @@ #include "gba/multiboot.h" #include "gba/syscall.h" #include "gba/macro.h" +#include "gba/libc.h" #endif // GUARD_GBA_GBA_H diff --git a/include/gba/libc.h b/include/gba/libc.h new file mode 100644 index 000000000..9ed82ac28 --- /dev/null +++ b/include/gba/libc.h @@ -0,0 +1,10 @@ +#ifndef GUARD_LIBC_H +#define GUARD_LIBC_H + +void *memset(void *dst, int val, size_t size); +void *memcpy(void *dst, const void *src, size_t size); +int strcmp(const char *s1, const char *s2); +char *strcpy(char *dst0, const char *src0); +#define abs(x) ((x) >= 0 ? (x) : -(x)) + +#endif //GUARD_LIBC_H |