aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/include/string.h
blob: 365d238569610fc7e0dadfa6cdf2be366411781f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
 * string.h
 *
 * Prototypes for string functions of the C library
 *
 * PSXSDK
 */

#ifndef _STRING_H
#define _STRING_H

#ifdef __cplusplus
extern "C" {
#endif

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);

#ifdef __cplusplus
}
#endif

#endif