GBDK 2020 Docs API Documentation for GBDK 2020

string.h
Go to the documentation of this file.
1
4 #ifndef STRING_INCLUDE
5 #define STRING_INCLUDE
6
7 #include <types.h>
8
20 char *strcpy(char *dest, const char *src) NONBANKED __preserves_regs(b, c);
21
32 int strcmp(const char *s1, const char *s2) NONBANKED __preserves_regs(b, c);
33
42 void *memcpy(void *dest, const void *src, size_t len) NONBANKED __preserves_regs(b, c);
43
46 void *memmove (void *dest, const void *src, size_t n);
47
54 void *memset (void *s, int c, size_t n) NONBANKED __preserves_regs(b, c);
55
66 char *reverse(char *s) __preserves_regs(b, c);
67
79 char *strcat(char *s1, const char *s2) NONBANKED;
80
87 int strlen(const char *s) NONBANKED __preserves_regs(b, c);
88
99 char *strncat(char *s1, const char *s2, int n) NONBANKED;
100
112 int strncmp(const char *s1, const char *s2, int n) NONBANKED;
113
129 char *strncpy(char *s1, const char *s2, int n) NONBANKED;
130
131 #endif
strncmp
int strncmp(const char *s1, const char *s2, int n) NONBANKED
strncpy
char * strncpy(char *s1, const char *s2, int n) NONBANKED
strncat
char * strncat(char *s1, const char *s2, int n) NONBANKED
reverse
char * reverse(char *s) __preserves_regs(b
strcat
char * strcat(char *s1, const char *s2) NONBANKED
types.h
memset
void * memset(void *s, int c, size_t n) NONBANKED __preserves_regs(b
strcpy
char * strcpy(char *dest, const char *src) NONBANKED __preserves_regs(b
strcmp
int strcmp(const char *s1, const char *s2) NONBANKED __preserves_regs(b
memmove
void * memmove(void *dest, const void *src, size_t n)
b
void b
Definition: gb.h:453
NONBANKED
#define NONBANKED
Definition: types.h:11
strlen
int strlen(const char *s) NONBANKED __preserves_regs(b
c
char c
Definition: string.h:20
memcpy
void * memcpy(void *dest, const void *src, size_t len) NONBANKED __preserves_regs(b