2017-10-21 23:40:19 +00:00
|
|
|
/****************************************************************
|
|
|
|
*
|
|
|
|
* string.h - string processing
|
|
|
|
*
|
|
|
|
* February 1989
|
|
|
|
* Mike Westerfield
|
|
|
|
*
|
|
|
|
* Copyright 1989
|
|
|
|
* Byte Works, Inc.
|
|
|
|
*
|
|
|
|
****************************************************************/
|
|
|
|
|
|
|
|
#ifndef __string__
|
|
|
|
#define __string__
|
|
|
|
|
|
|
|
#ifndef __size_t__
|
|
|
|
#define __size_t__ 1
|
|
|
|
typedef unsigned long size_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef NULL
|
|
|
|
#define NULL (void *) 0L
|
|
|
|
#endif
|
|
|
|
|
2021-02-17 21:36:38 +00:00
|
|
|
#ifndef __KeepNamespacePure__
|
|
|
|
char *c2pstr(char *);
|
|
|
|
#endif
|
2017-10-21 23:40:19 +00:00
|
|
|
void *memchr(const void *, int, size_t);
|
|
|
|
int memcmp(const void *, const void *, size_t);
|
|
|
|
void *memcpy(void *, const void *, size_t);
|
|
|
|
void *memmove(void *, const void *, size_t);
|
|
|
|
void *memset(void *, int, size_t);
|
2021-02-17 21:36:38 +00:00
|
|
|
#ifndef __KeepNamespacePure__
|
|
|
|
char *p2cstr(char *);
|
|
|
|
#endif
|
2017-10-21 23:40:19 +00:00
|
|
|
char *strcat(char *, const char *);
|
|
|
|
char *strchr(const char *, int);
|
|
|
|
int strcmp(const char *, const char *);
|
2021-09-30 23:41:17 +00:00
|
|
|
int strcoll(const char *, const char *);
|
2017-10-21 23:40:19 +00:00
|
|
|
char *strcpy(char *, const char *);
|
|
|
|
size_t strcspn(const char *, const char *);
|
|
|
|
char *strerror(int);
|
|
|
|
size_t strlen(const char *);
|
|
|
|
char *strncat(char *, const char *, size_t);
|
|
|
|
int strncmp(const char *, const char *, size_t);
|
|
|
|
char *strncpy(char *, const char *, size_t);
|
|
|
|
char *strpbrk(const char *, const char *);
|
2021-02-17 21:36:38 +00:00
|
|
|
#ifndef __KeepNamespacePure__
|
|
|
|
int strpos(char *, char);
|
|
|
|
#endif
|
2017-10-21 23:40:19 +00:00
|
|
|
char *strrchr(const char *, int);
|
2021-02-17 21:36:38 +00:00
|
|
|
#ifndef __KeepNamespacePure__
|
|
|
|
char *strrpbrk(char *, char *);
|
|
|
|
int strrpos(char *, char);
|
|
|
|
#endif
|
2017-10-21 23:40:19 +00:00
|
|
|
size_t strspn(const char *, const char *);
|
|
|
|
char *strstr(const char *, const char *);
|
|
|
|
char *strtok(char *, const char *);
|
2021-09-30 23:41:17 +00:00
|
|
|
size_t strxfrm(char *, const char *, size_t);
|
|
|
|
|
2017-10-21 23:40:19 +00:00
|
|
|
|
|
|
|
#endif
|