2 |
- |
1 |
#ifndef __STRING_H_
|
|
|
2 |
#define __STRING_H_
|
|
|
3 |
#pragma lib "/$M/lib/ape/libap.a"
|
|
|
4 |
|
|
|
5 |
#include <stddef.h>
|
|
|
6 |
|
|
|
7 |
#ifdef __cplusplus
|
|
|
8 |
extern "C" {
|
|
|
9 |
#endif
|
|
|
10 |
|
|
|
11 |
extern void *memcpy(void *, const void *, size_t);
|
|
|
12 |
extern void* memccpy(void*, void*, int, size_t);
|
|
|
13 |
extern void *memmove(void *, const void *, size_t);
|
|
|
14 |
extern char *strcpy(char *, const char *);
|
|
|
15 |
extern char *strncpy(char *, const char *, size_t);
|
|
|
16 |
extern char *strcat(char *, const char *);
|
|
|
17 |
extern char *strncat(char *, const char *, size_t);
|
|
|
18 |
extern int memcmp(const void *, const void *, size_t);
|
|
|
19 |
extern int strcmp(const char *, const char *);
|
|
|
20 |
extern int strcoll(const char *, const char *);
|
|
|
21 |
extern char* strdup(char*);
|
|
|
22 |
extern int strncmp(const char *, const char *, size_t);
|
|
|
23 |
extern size_t strxfrm(char *, const char *, size_t);
|
|
|
24 |
extern void *memchr(const void *, int, size_t);
|
|
|
25 |
extern char *strchr(const char *, int);
|
|
|
26 |
extern size_t strcspn(const char *, const char *);
|
|
|
27 |
extern char *strpbrk(const char *, const char *);
|
|
|
28 |
extern char *strrchr(const char *, int);
|
|
|
29 |
extern size_t strspn(const char *, const char *);
|
|
|
30 |
extern char *strstr(const char *, const char *);
|
|
|
31 |
extern char *strtok(char *, const char *);
|
|
|
32 |
extern void *memset(void *, int, size_t);
|
|
|
33 |
extern char *strerror(int);
|
|
|
34 |
extern size_t strlen(const char *);
|
|
|
35 |
|
|
|
36 |
#ifdef _REENTRANT_SOURCE
|
|
|
37 |
extern char *strerror_r(int, const char *, int);
|
|
|
38 |
extern char *strtok_r(char *, const char *, char **);
|
|
|
39 |
#endif
|
|
|
40 |
|
|
|
41 |
#ifdef _BSD_EXTENSION
|
|
|
42 |
#include <bsd.h>
|
|
|
43 |
#endif
|
|
|
44 |
|
95 |
7u83 |
45 |
/* C90 extensions */
|
|
|
46 |
char * strsep(char **stringp, const char *delim);
|
|
|
47 |
|
|
|
48 |
|
2 |
- |
49 |
#ifdef __cplusplus
|
|
|
50 |
}
|
|
|
51 |
#endif
|
|
|
52 |
|
|
|
53 |
#endif
|