OSDN Git Service

first commit
[winexe-harib/winexe-harib.git] / golibc / string.h
1 /* copyright(C) 2003 H.Kawai (under KL-01). */
2
3 #if (!defined(STRING_H))
4
5 #define STRING_H        1
6
7 #if (defined(__cplusplus))
8         extern "C" {
9 #endif
10
11 #include <stddef.h>             /* size_t */
12
13 char *strcpy(char *s, const char *ct);
14 char *strncpy(char *s, const char *ct, size_t n);
15 char *strcat(char *s, const char *ct);
16 char *strncat(char *s, const char *ct, size_t n);
17 int strcmp(const char *cs, const char *ct);
18 int strncmp(const char *cs, const char *ct, size_t n);
19 char *strchr(const char *cs, int c);
20 char *strrchr(const char *cs, int c);
21 size_t strspn(const char *s, const char *accept);
22 size_t strcspn(const char *s, const char *reject);
23 char *strpbrk(const char *s, const char *accept);
24 char *strstr(const char *cs, const char *ct);
25 size_t strlen(const char *cs);
26
27 void *memcpy(void *s, const void *ct, size_t n);
28 void *memmove(void *s, const void *ct, size_t n);
29 int memcmp(const void *cs, const void *ct, size_t n);
30 void *memchr(const void *cs, int c, size_t n);
31 void *memset(void *s, int c, size_t n);
32 char *strdup(const char *s);
33
34 #if (defined(__cplusplus))
35         }
36 #endif
37
38 #endif