summaryrefslogtreecommitdiff
path: root/include/MSL_C
diff options
context:
space:
mode:
authorMax <mparisi@stevens.edu>2020-10-29 14:27:37 -0400
committerMax <mparisi@stevens.edu>2020-10-29 14:27:37 -0400
commit47a1bdea8872c79dd2cd7d75ca7f254b9ed13170 (patch)
treef254bbac3fde59afbc4abe7f07ea763bed53b20c /include/MSL_C
parentf13fcff4a5f496e8bc1fa4ff759698d9ac37c478 (diff)
match up to func_801DCFE4, add string.h and stdlib.h, add types.h to Makefile include path, and move GameSpy under DWC
Diffstat (limited to 'include/MSL_C')
-rw-r--r--include/MSL_C/MSL_Common/qsort.h15
-rw-r--r--include/MSL_C/stdlib.h15
-rw-r--r--include/MSL_C/string.h18
3 files changed, 48 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..83b7bd0
--- /dev/null
+++ b/include/MSL_C/string.h
@@ -0,0 +1,18 @@
+#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);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif //POKEREVO_STRING_H