diff options
author | Taru Karttunen <taruti@taruti.net> | 2011-03-30 16:47:56 +0300 |
---|---|---|
committer | Taru Karttunen <taruti@taruti.net> | 2011-03-30 16:47:56 +0300 |
commit | c558a99e0be506a9abdf677f0ca4490644e05fc1 (patch) | |
tree | 17aef678ad05a32ef96ce8385703cb3fe089a5c7 /sys/include/ape/string.h | |
parent | e5888a1ffdae813d7575f5fb02275c6bb07e5199 (diff) |
Import sources from 2011-03-30 iso image - sys/include
Diffstat (limited to 'sys/include/ape/string.h')
-rwxr-xr-x | sys/include/ape/string.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/sys/include/ape/string.h b/sys/include/ape/string.h new file mode 100755 index 000000000..0e2144c72 --- /dev/null +++ b/sys/include/ape/string.h @@ -0,0 +1,47 @@ +#ifndef __STRING_H_ +#define __STRING_H_ +#pragma lib "/$M/lib/ape/libap.a" + +#include <stddef.h> + +#ifdef __cplusplus +extern "C" { +#endif + +extern void *memcpy(void *, const void *, size_t); +extern void *memmove(void *, const void *, size_t); +extern char *strcpy(char *, const char *); +extern char *strncpy(char *, const char *, size_t); +extern char *strcat(char *, const char *); +extern char *strncat(char *, const char *, size_t); +extern int memcmp(const void *, const void *, size_t); +extern int strcmp(const char *, const char *); +extern int strcoll(const char *, const char *); +extern int strncmp(const char *, const char *, size_t); +extern size_t strxfrm(char *, const char *, size_t); +extern void *memchr(const void *, int, size_t); +extern char *strchr(const char *, int); +extern size_t strcspn(const char *, const char *); +extern char *strpbrk(const char *, const char *); +extern char *strrchr(const char *, int); +extern size_t strspn(const char *, const char *); +extern char *strstr(const char *, const char *); +extern char *strtok(char *, const char *); +extern void *memset(void *, int, size_t); +extern char *strerror(int); +extern size_t strlen(const char *); + +#ifdef _REENTRANT_SOURCE +extern char *strerror_r(int, const char *, int); +extern char *strtok_r(char *, const char *, char **); +#endif + +#ifdef _BSD_EXTENSION +#include <bsd.h> +#endif + +#ifdef __cplusplus +} +#endif + +#endif |