Files
photon/photon/libc/include/string.h

29 lines
701 B
C
Raw Normal View History

#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
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-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);
extern char *strdup(const char *s);
#if defined(__cplusplus)
} /* extern "C" */
#endif
#endif