summaryrefslogtreecommitdiff
path: root/src/libultra_boot_O2/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libultra_boot_O2/string.c')
-rw-r--r--src/libultra_boot_O2/string.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/libultra_boot_O2/string.c b/src/libultra_boot_O2/string.c
deleted file mode 100644
index bf059094f..000000000
--- a/src/libultra_boot_O2/string.c
+++ /dev/null
@@ -1,33 +0,0 @@
-#include "global.h"
-
-const char* strchr(const char* str, s32 ch) {
- u8 c = ch;
-
- while (*str != c) {
- if (*str == 0) {
- return NULL;
- }
- str++;
- }
- return str;
-}
-
-u32 strlen(const char* str) {
- const char* ptr = str;
-
- while (*ptr) {
- ptr++;
- }
- return ptr - str;
-}
-
-void* memcpy(void* dst, const void* src, u32 size) {
- u8* _dst = dst;
- const u8* _src = src;
-
- while (size > 0) {
- *_dst++ = *_src++;
- size--;
- }
- return dst;
-}