mirror of
https://github.com/yourtion/30dayMakeOS.git
synced 2026-04-25 03:00:29 +08:00
Add tools set
This commit is contained in:
38
tolset/z_tools/win32/string.h
Normal file
38
tolset/z_tools/win32/string.h
Normal file
@@ -0,0 +1,38 @@
|
||||
/* 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
|
||||
Reference in New Issue
Block a user