2020-03-31 12:04:53 +01:00
|
|
|
#ifndef STRING_H_
|
|
|
|
|
#define STRING_H_
|
|
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
2020-04-17 11:22:23 +01:00
|
|
|
extern void *memcpy(void *dest, const void *src, size_t sz);
|
2020-07-08 19:10:50 +01:00
|
|
|
extern int memcmp(const void *a, const void *b, size_t sz);
|
2020-04-17 11:22:23 +01:00
|
|
|
extern void *memmove(void *dest, const void *src, size_t sz);
|
2020-05-15 14:54:39 +01:00
|
|
|
extern void *memset(void *ptr, int value, size_t sz);
|
2020-04-17 11:22:23 +01:00
|
|
|
|
2020-03-31 12:04:53 +01:00
|
|
|
extern size_t strlen(const char *str);
|
2020-04-17 11:22:23 +01:00
|
|
|
extern int strcmp(const char *a, const char *b);
|
|
|
|
|
extern int strncmp(const char *a, const char *b, size_t sz);
|
2020-03-31 12:04:53 +01:00
|
|
|
|
2020-07-16 14:02:51 +01:00
|
|
|
extern char *strcpy(char *dest, const char *src);
|
|
|
|
|
extern char *strncpy(char *dest, const char *src, size_t sz);
|
|
|
|
|
|
2020-07-18 17:22:20 +01:00
|
|
|
extern char *strrchr(const char *s, int c);
|
|
|
|
|
|
2020-07-16 14:02:51 +01:00
|
|
|
extern char *strdup(const char *s);
|
|
|
|
|
|
2020-03-31 12:04:53 +01:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
|
} /* extern "C" */
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif
|