]> git.lizzy.rs Git - plan9front.git/blob - sys/include/ape/string.h
remove keyboard stuff from other ports, make openssl and python compile on arm
[plan9front.git] / sys / include / ape / string.h
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 *memmove(void *, const void *, size_t);
13 extern char *strcpy(char *, const char *);
14 extern char *strncpy(char *, const char *, size_t);
15 extern char *strcat(char *, const char *);
16 extern char *strncat(char *, const char *, size_t);
17 extern int memcmp(const void *, const void *, size_t);
18 extern int strcmp(const char *, const char *);
19 extern int strcoll(const char *, const char *);
20 extern int strncmp(const char *, const char *, size_t);
21 extern size_t strxfrm(char *, const char *, size_t);
22 extern void *memchr(const void *, int, size_t);
23 extern char *strchr(const char *, int);
24 extern size_t strcspn(const char *, const char *);
25 extern char *strpbrk(const char *, const char *);
26 extern char *strrchr(const char *, int);
27 extern size_t strspn(const char *, const char *);
28 extern char *strstr(const char *, const char *);
29 extern char *strtok(char *, const char *);
30 extern void *memset(void *, int, size_t);
31 extern char *strerror(int);
32 extern size_t strlen(const char *);
33
34 #ifdef _REENTRANT_SOURCE
35 extern char *strerror_r(int, const char *, int);
36 extern char *strtok_r(char *, const char *, char **);
37 #endif
38
39 #ifdef _BSD_EXTENSION
40 #include <bsd.h>
41 #endif
42
43 #ifdef __cplusplus
44 }
45 #endif
46
47 #endif