2022-06-07 01:35:14 -04:00
|
|
|
#ifndef _STRING_H
|
|
|
|
#define _STRING_H 1
|
2021-12-15 05:45:40 -05:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
2022-06-07 02:05:27 -04:00
|
|
|
int memcmp(const void *s1, const void *s2, size_t n);
|
2022-06-05 22:23:46 -04:00
|
|
|
void *memcpy(void *dest, const void *src, size_t n);
|
|
|
|
void *memmove(void *dest, const void *src, size_t n);
|
2021-12-15 05:45:40 -05:00
|
|
|
void *memset(void *s, int c, size_t n);
|
2022-06-05 22:23:46 -04:00
|
|
|
int strcmp(const char *s1, const char *s2);
|
2021-12-15 05:45:40 -05:00
|
|
|
char *strcpy(char *dest, const char *src);
|
|
|
|
size_t strlen(const char *s);
|
2022-06-05 22:23:46 -04:00
|
|
|
int strncmp(const char *s1, const char *s2, size_t n);
|
|
|
|
char *strncpy(char *dest, const char *src, size_t n);
|
2022-01-19 06:14:46 -05:00
|
|
|
size_t strnlen(const char *s, size_t maxlen);
|
2022-06-05 22:23:46 -04:00
|
|
|
char *strstr(const char *haystack, const char *needle);
|
2021-12-15 05:45:40 -05:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|