GBDK 2020 Docs 4.4.0 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);
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
115 int strncmp(const char *s1, const char *s2, int n);
116
132 char *strncpy(char *s1, const char *s2, int n);
133
148 int memcmp(const void *buf1, const void *buf2, size_t count) OLDCALL;
149
150 #endif
strcmp
int strcmp(const char *s1, const char *s2)
strcat
char * strcat(char *s1, const char *s2) NONBANKED
strncat
char * strncat(char *s1, const char *s2, int n) NONBANKED
strncpy
char * strncpy(char *s1, const char *s2, int n) NONBANKED
reverse
char * reverse(char *s) NONBANKED
memmove
void * memmove(void *dest, const void *src, size_t n) OLDCALL
strncmp
int strncmp(const char *s1, const char *s2, int n) NONBANKED
memcmp
int memcmp(const void *buf1, const void *buf2, size_t count)
strlen
int strlen(const char *s) OLDCALL
memset
void * memset(void *s, int c, size_t n)
strcpy
char * strcpy(char *dest, const char *src) OLDCALL
c
char c
Definition: string.h:20
memcpy
void * memcpy(void *dest, const void *src, size_t len)
OLDCALL
#define OLDCALL
Definition: types.h:21
PRESERVES_REGS
#define PRESERVES_REGS(...)
Definition: types.h:32
b
void b
Definition: gb.h:748
types.h