summaryrefslogtreecommitdiff
path: root/include/MSL_C/string.h
diff options
context:
space:
mode:
authorJcw87 <Jcw87@users.noreply.github.com>2023-04-21 02:02:03 -0700
committerGitHub <noreply@github.com>2023-04-21 02:02:03 -0700
commitf5fc527d39c754fde87aeb90033d2efd698ad7e2 (patch)
treebce002e621968da87e420d06d09193840a381c9b /include/MSL_C/string.h
parent472340e2d65914f3a19aa332ad31939755ee4579 (diff)
add MSL_C/stdio.h (#317)
Diffstat (limited to 'include/MSL_C/string.h')
-rw-r--r--include/MSL_C/string.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/include/MSL_C/string.h b/include/MSL_C/string.h
index c1105257c8..21cb9c7274 100644
--- a/include/MSL_C/string.h
+++ b/include/MSL_C/string.h
@@ -1,27 +1,23 @@
#ifndef MSL_STRING_H_
#define MSL_STRING_H_
-#include "Runtime.PPCEABI.H/__va_arg.h"
+#include "MSL_C/MSL_Common/Src/stddef.h"
// TODO: move to MSL_C/
extern "C" {
-void memcpy(void*, const void*, s32);
-void* memset(void* dest, int ch, u32 count);
+void memcpy(void*, const void*, size_t);
+void* memset(void* dest, int ch, size_t count);
char* strrchr(const char* s, int c);
char* strchr(const char* s, int c);
-int strncmp(const char* s1, const char* s2, u32 n);
+int strncmp(const char* s1, const char* s2, size_t n);
int strcmp(const char* s1, const char* s2);
int stricmp(const char*, const char*);
char* strcat(char* dest, const char* source);
-char* strncpy(char* dest, const char* source, u32 n);
+char* strncpy(char* dest, const char* source, size_t n);
char* strcpy(char* dest, const char* source);
-u32 strlen(const char* s);
+size_t strlen(const char* s);
int tolower(int);
-int sprintf(char*, const char*, ...);
-int printf(const char*, ...);
-int snprintf(char*, u32, const char*, ...);
-size_t vsnprintf(char* buffer, size_t buffer_size, const char* format, va_list args);
}
#endif \ No newline at end of file