aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/include/string.h
diff options
context:
space:
mode:
authorJohn Wilbert M. Villamor <lameguy64@gmail.com>2019-04-06 10:11:07 +0800
committerJohn Wilbert M. Villamor <lameguy64@gmail.com>2019-04-06 10:11:07 +0800
commitf3e040230772f978540a71aea43dfde200992922 (patch)
treebd8ca31b72dd01e24980b073854e263589530f56 /libpsn00b/include/string.h
downloadpsn00bsdk-f3e040230772f978540a71aea43dfde200992922.tar.gz
First commit
Diffstat (limited to 'libpsn00b/include/string.h')
-rw-r--r--libpsn00b/include/string.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/libpsn00b/include/string.h b/libpsn00b/include/string.h
new file mode 100644
index 0000000..95796d5
--- /dev/null
+++ b/libpsn00b/include/string.h
@@ -0,0 +1,42 @@
+/*
+ * string.h
+ *
+ * Prototypes for string functions of the C library
+ *
+ * PSXSDK
+ */
+
+#ifndef _STRING_H
+#define _STRING_H
+
+int strcmp(const char *dst , const char *src);
+int strncmp(const char *dst , const char *src , int len);
+char *strpbrk(const char *dst , const char *src);
+char *strtok(char *s , char *set);
+char *strstr(const char *big , const char *little);
+
+//int strspn(char *s , char *set);
+//int strcspn(char *s , char *set);
+//int index(char *s , int c);
+//int rindex(char *s , int c);
+
+char *strcat(char *s , const char *append);
+char *strncat(char *s , const char *append, int n);
+char *strcpy(char *dst , const char *src);
+char *strncpy(char *dst , const char *src , int n);
+int strlen(const char *s);
+//char *strchr(const char *s , int c);
+//char *strrchr(const char *s , int c);
+
+void *memmove(void *dst , const void *src , int n);
+void *memchr(void *s , int c , int n);
+
+// Functions converted to ASM
+
+void *memcpy(void *dst , const void *src , int n);
+void *memset(void *dst , char c , int n);
+int memcmp(const void *b1 , const void *b2 , int n);
+
+
+#endif
+