From f3e040230772f978540a71aea43dfde200992922 Mon Sep 17 00:00:00 2001 From: "John Wilbert M. Villamor" Date: Sat, 6 Apr 2019 10:11:07 +0800 Subject: First commit --- libpsn00b/include/string.h | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 libpsn00b/include/string.h (limited to 'libpsn00b/include/string.h') 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 + -- cgit v1.2.3