diff options
Diffstat (limited to 'include/MSL_C')
-rw-r--r-- | include/MSL_C/MSL_Common/qsort.h | 15 | ||||
-rw-r--r-- | include/MSL_C/stdlib.h | 15 | ||||
-rw-r--r-- | include/MSL_C/string.h | 22 |
3 files changed, 52 insertions, 0 deletions
diff --git a/include/MSL_C/MSL_Common/qsort.h b/include/MSL_C/MSL_Common/qsort.h new file mode 100644 index 0000000..c13ae0e --- /dev/null +++ b/include/MSL_C/MSL_Common/qsort.h @@ -0,0 +1,15 @@ +#ifndef POKEREVO_QSORT_H
+#define POKEREVO_QSORT_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void qsort(void *base, u32 nmemb, u32 size,
+ s32 (*compar)(const void *, const void *));
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif //POKEREVO_QSORT_H
diff --git a/include/MSL_C/stdlib.h b/include/MSL_C/stdlib.h new file mode 100644 index 0000000..bf86bca --- /dev/null +++ b/include/MSL_C/stdlib.h @@ -0,0 +1,15 @@ +#ifndef POKEREVO_STDLIB_H
+#define POKEREVO_STDLIB_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void qsort(void *base, u32 nmemb, u32 size,
+ s32 (*compar)(const void *, const void *));
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif //POKEREVO_STDLIB_H
diff --git a/include/MSL_C/string.h b/include/MSL_C/string.h new file mode 100644 index 0000000..7b4755c --- /dev/null +++ b/include/MSL_C/string.h @@ -0,0 +1,22 @@ +#ifndef POKEREVO_STRING_H
+#define POKEREVO_STRING_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void *memset(void *s, int c, size_t n);
+void *memmove(void *dest, const void *src, size_t n);
+void *memcpy(void *dest, const void *src, size_t n);
+int strcmp(const char *s1, const char *s2);
+int strncmp(const char *s1, const char *s2, size_t n);
+char *strcpy(char *dest, const char *src);
+char *strncpy(char *dest, const char *src, size_t n);
+char *strcat(char *dest, const char *src);
+char *strncat(char *dest, const char *src, size_t n);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif //POKEREVO_STRING_H
|