mirror of
https://github.com/yourtion/30dayMakeOS.git
synced 2026-02-07 20:13:22 +08:00
39 lines
1.0 KiB
C
39 lines
1.0 KiB
C
/* copyright(C) 2003 H.Kawai (under KL-01). */
|
|
|
|
#if (!defined(STRING_H))
|
|
|
|
#define STRING_H 1
|
|
|
|
#if (defined(__cplusplus))
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stddef.h> /* size_t */
|
|
|
|
char *strcpy(char *s, const char *ct);
|
|
char *strncpy(char *s, const char *ct, size_t n);
|
|
char *strcat(char *s, const char *ct);
|
|
char *strncat(char *s, const char *ct, size_t n);
|
|
int strcmp(const char *cs, const char *ct);
|
|
int strncmp(const char *cs, const char *ct, size_t n);
|
|
char *strchr(const char *cs, int c);
|
|
char *strrchr(const char *cs, int c);
|
|
size_t strspn(const char *s, const char *accept);
|
|
size_t strcspn(const char *s, const char *reject);
|
|
char *strpbrk(const char *s, const char *accept);
|
|
char *strstr(const char *cs, const char *ct);
|
|
size_t strlen(const char *cs);
|
|
|
|
void *memcpy(void *s, const void *ct, size_t n);
|
|
void *memmove(void *s, const void *ct, size_t n);
|
|
int memcmp(const void *cs, const void *ct, size_t n);
|
|
void *memchr(const void *cs, int c, size_t n);
|
|
void *memset(void *s, int c, size_t n);
|
|
char *strdup(const char *s);
|
|
|
|
#if (defined(__cplusplus))
|
|
}
|
|
#endif
|
|
|
|
#endif
|