#ifndef _STRING_H #define _STRING_H #include #ifdef __cplusplus extern "C" { #endif int memcmp(void *s1, void *s2, size_t n); void *memcpy(void *dest, const void *src, size_t len); void *memset(void *dest, int byte, size_t len); int strcmp(const char *s1, const char *s2); int strncmp(const char *s1, const char *s2, size_t n); char *strcpy(char *dest, const char *src); char *strncpy(char *dest, const char *src, size_t n); size_t strlen(const char *str); size_t strnlen(const char *str, size_t maxlen); char *strcat(char *dest, const char *src); char *strchr(char *s, int c); #ifdef __cplusplus } #endif #endif