37 lines
1.3 KiB
C
37 lines
1.3 KiB
C
#ifndef SOCKS_LIBC_STRING_H_
|
|
#define SOCKS_LIBC_STRING_H_
|
|
|
|
#include <stdint.h>
|
|
#include <stddef.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
extern char *strcpy(char *output, const char *input);
|
|
extern char *strncpy(char *output, const char *input, unsigned int count);
|
|
extern char *strchrnul(const char *s, int c);
|
|
extern char *strchr(const char *s, int c);
|
|
extern size_t lfind(const char *str, const char accept);
|
|
extern size_t strspn(const char *s, const char *c);
|
|
extern size_t strcspn(const char *s, const char *c);
|
|
extern char *strpbrk(const char *s, const char *b);
|
|
extern size_t strlen(const char *str);
|
|
extern char *strrchr(const char *str, int c);
|
|
extern int strcmp(const char *s1, const char *s2);
|
|
extern int strncmp(const char *s1, const char *s2, unsigned int n);
|
|
extern void *memcpy(void *str1, const void *str2, size_t n);
|
|
extern int memcmp(const void *str1, const void *str2, size_t n);
|
|
extern void *memset(void *str, int c, size_t n);
|
|
extern void *memmove(void *dst, const void *src, size_t n);
|
|
extern char *strdup(const char *src);
|
|
extern char *strtok_r(char *str, const char *delim, char **saveptr);
|
|
extern char *strcat(char *dest, const char *src);
|
|
extern char *strncat(char *dest, const char *src, size_t num);
|
|
extern void *memchr(const void *ptr, int value, size_t num);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|