Files
photon/libc/include/string.h

40 lines
1.0 KiB
C

#ifndef STRING_H_
#define STRING_H_
#include <stddef.h>
#if defined(__cplusplus)
extern "C" {
#endif
extern void *memcpy(void *dest, const void *src, size_t sz);
extern int memcmp(const void *a, const void *b, size_t sz);
extern void *memmove(void *dest, const void *src, size_t sz);
extern void *memset(void *ptr, int value, size_t sz);
extern char *strcat(char *dest, const char *src);
extern size_t strlen(const char *str);
extern int strcmp(const char *a, const char *b);
extern int strncmp(const char *a, const char *b, size_t sz);
extern char *strcpy(char *dest, const char *src);
extern char *strncpy(char *dest, const char *src, size_t sz);
extern char *strchr(const char *str, int ch);
extern char *strrchr(const char *s, int c);
extern size_t strcspn(const char *str1, const char *str2);
extern char *strdup(const char *s);
extern char *strtok(char *s, const char *delim);
extern char *strtok_r(char *s, const char *delim, char **sp);
extern char *strerror(int errnum);
#if defined(__cplusplus)
} /* extern "C" */
#endif
#endif