blob: 429da4b27097229c65f243072b10fbc9e086938d (
plain)
1
2
3
4
5
6
7
8
9
10
|
#ifndef STRING_H
#define STRING_H
void* memcpy(void* restrict dstptr, const void* restrict srcptr, int size);
int strcmp(char *str1, char *str2);
int strcmp_l(char *str1, char *str2, int length);
int strlen(const char* string);
static char *strcpy (char* dst, const char *src ){return memcpy(dst,src,strlen(src)+1);} // with trailing 0
#endif
|