github.com/gotranspile/cxgo@v0.3.8-0.20240118201721-29871598a6a2/libs/includes/string.h (about) 1 #include <stddef.h> 2 #include <stdlib.h> 3 4 #define memcpy __builtin_memcpy 5 #define memmove __builtin_memmove 6 #define memset __builtin_memset 7 8 void *memccpy(void *restrict, const void *restrict, int, _cxgo_go_int); 9 void *memchr(const void *, _cxgo_go_byte, _cxgo_go_int); 10 _cxgo_go_int memcmp(const void *, const void *, _cxgo_go_int); 11 char *stpcpy(char *restrict, const char *restrict); 12 char *stpncpy(char *restrict, const char *restrict, size_t); 13 char *strcat(char *restrict, const char *restrict); 14 char *strchr(const char *, _cxgo_go_byte); 15 _cxgo_go_int strcmp(const char *, const char *); 16 _cxgo_go_int strcoll(const char *, const char *); 17 //int strcoll_l(const char *, const char *, locale_t); 18 char *strcpy(char *restrict, const char *restrict); 19 _cxgo_go_int strcspn(const char *, const char *); 20 #define strdup __builtin_strdup 21 #define strndup __builtin_strndup 22 char *strerror(int); 23 //char *strerror_l(int, locale_t); 24 int strerror_r(int, char *, size_t); 25 _cxgo_go_int strlen(const char *); 26 char *strncat(char *restrict, const char *restrict, _cxgo_go_int); 27 _cxgo_go_int strncmp(const char *, const char *, _cxgo_go_int); 28 char *strncpy(char *restrict, const char *restrict, _cxgo_go_int); 29 _cxgo_go_int strnlen(const char *, _cxgo_go_int); 30 char *strpbrk(const char *, const char *); 31 char *strrchr(const char *, _cxgo_go_byte); 32 char *strsignal(int); 33 _cxgo_go_int strspn(const char *, const char *); 34 char *strstr(const char *, const char *); 35 char *strtok(char *restrict, const char *restrict); 36 char *strtok_r(char *restrict, const char *restrict, char **restrict); 37 size_t strxfrm(char *restrict, const char *restrict, size_t); 38 //size_t strxfrm_l(char *restrict, const char *restrict, size_t, locale_t); 39 _cxgo_go_int strcasecmp(const char *s1, const char *s2); 40 _cxgo_go_int strncasecmp(const char *s1, const char *s2, _cxgo_go_int n);