Melee Modding Library  2.0.0
A C library for modding Super Smash Bros Melee
string.h
Go to the documentation of this file.
1 
7 #ifndef MML_STRING_H
8 #define MML_STRING_H
9 
10 #include "gctypes.h"
11 
13 extern void* (*memchr) (const void*, int, size_t);
14 extern int (*memcmp) (const void*, const void*, size_t);
15 extern char* (*strchr) (const char*, int);
16 extern int (*strcmp) (const char*, const char*);
17 extern int (*strncmp) (const char*, const char*, size_t);
18 extern char* (*strcpy) (char*, const char*);
19 extern char* (*strncpy) (char*, const char*, size_t);
20 extern size_t (*strlen) (const char*);
21 
22 #if 0
23 
49 void* memchr(const void* ptr, int value, size_t num);
50 
74 int memcmp(const void* ptr1, const void* ptr2, size_t num);
75 
96 char* strchr(const char* str, int character);
97 
119 int strcmp(const char* str1, const char* str2);
120 
143 int strncmp(const char* str1, const char* str2, size_t num);
144 
165 char* strcpy(char* destination, const char* source);
166 
192 char* strncpy(char* destination, const char* source, size_t num);
193 
218 size_t strlen(const char* str);
219 
221 #endif
222 
243 char* itoa(s32 n, char* s);
244 char* ftoa(float f, char* s);
245 
271 void* memcpy (void* destination, const void* source, size_t num);
272 
289 void* memset (void* ptr, int value, size_t num);
290 
311 char* strcat(char* destination, const char* source);
312 
313 #endif
char * strcpy(char *destination, const char *source)
void * memchr(const void *ptr, int value, size_t num)
Locate character in block of memory.
int strcmp(const char *str1, const char *str2)
Compare two strings.
char * strcat(char *destination, const char *source)
Concatenate strings.
Definition: string.c:17
void * memcpy(void *destination, const void *source, size_t num)
Copy block of memory.
Definition: string.c:67
char * strchr(const char *str, int character)
Locate first occurrence of character in string.
Data types for the gamecube.
void * memset(void *ptr, int value, size_t num)
Fill block of memory.
Definition: string.c:73
u32 size_t
Definition: gctypes.h:36
char * itoa(s32 n, char *s)
Definition: string.c:42
int strncmp(const char *str1, const char *str2, size_t num)
Compare characters of two strings.
size_t strlen(const char *str)
Get string length.
int32_t s32
Definition: gctypes.h:20
int memcmp(const void *ptr1, const void *ptr2, size_t num)
Compare two blocks of memory.
char * strncpy(char *destination, const char *source, size_t num)
Copy characters from string.