aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/include/string.h
blob: ceee06639e6cfa54047123120274f296edf95620 (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
/*
 * PSn00bSDK standard library
 * (C) 2019-2022 PSXSDK authors, Lameguy64, spicyjpeg - MPL licensed
 */

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

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