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) OLDCALL __preserves_regs(b, c);
21 
32 int strcmp(const char *s1, const char *s2) OLDCALL __preserves_regs(b, c);
33 
42 void *memcpy(void *dest, const void *src, size_t len) OLDCALL __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) OLDCALL __preserves_regs(b, c);
55 
66 char *reverse(char *s) OLDCALL __preserves_regs(b, c);
67 
79 char *strcat(char *s1, const char *s2);
80 
87 int strlen(const char *s) OLDCALL __preserves_regs(b, c);
88 
99 char *strncat(char *s1, const char *s2, int n);
100 
112 int strncmp(const char *s1, const char *s2, int n);
113 
129 char *strncpy(char *s1, const char *s2, int n);
130 
131 #endif
memcpy
void * memcpy(void *dest, const void *src, size_t len) OLDCALL __preserves_regs(b
types.h
c
char c
Definition: string.h:20
strlen
int strlen(const char *s) OLDCALL __preserves_regs(b
strncat
char * strncat(char *s1, const char *s2, int n)
reverse
char * reverse(char *s) OLDCALL __preserves_regs(b
memmove
void * memmove(void *dest, const void *src, size_t n)
strcmp
int strcmp(const char *s1, const char *s2) OLDCALL __preserves_regs(b
strncmp
int strncmp(const char *s1, const char *s2, int n)
b
void b
Definition: gb.h:585
OLDCALL
#define OLDCALL
Definition: types.h:21
strcat
char * strcat(char *s1, const char *s2)
strncpy
char * strncpy(char *s1, const char *s2, int n)
strcpy
char * strcpy(char *dest, const char *src) OLDCALL __preserves_regs(b
memset
void * memset(void *s, int c, size_t n) OLDCALL __preserves_regs(b