]> git.lizzy.rs Git - plan9front.git/blob - sys/include/ape/string.h
audiohda: fix syntax error
[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 *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 char *strndup(char*, size_t);
23 extern int strncmp(const char *, const char *, size_t);
24 extern size_t strxfrm(char *, const char *, size_t);
25 extern void *memchr(const void *, int, size_t);
26 extern char *strchr(const char *, int);
27 extern size_t strcspn(const char *, const char *);
28 extern char *strpbrk(const char *, const char *);
29 extern char *strrchr(const char *, int);
30 extern size_t strspn(const char *, const char *);
31 extern char *strstr(const char *, const char *);
32 extern char *strtok(char *, const char *);
33 extern void *memset(void *, int, size_t);
34 extern char *strerror(int);
35 extern size_t strlen(const char *);
36 extern size_t strnlen(const char *, size_t);
37
38 #ifdef _REENTRANT_SOURCE
39 extern char *strerror_r(int, const char *, int);
40 extern char *strtok_r(char *, const char *, char **);
41 #endif
42
43 #ifdef _BSD_EXTENSION
44 #include <bsd.h>
45 #endif
46
47 #ifdef __cplusplus
48 }
49 #endif
50
51 #endif