]> git.proxmox.com Git - wasi-libc.git/blob - libc-bottom-half/headers/public/__header_string.h
WASI libc prototype implementation.
[wasi-libc.git] / libc-bottom-half / headers / public / __header_string.h
1 #ifndef __wasilibc___headers_string_h
2 #define __wasilibc___headers_string_h
3
4 #define __need_size_t
5 #define __need_NULL
6 #include <stddef.h>
7
8 #include <__functions_memcpy.h>
9
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13
14 size_t strlen(const char *) __attribute__((__nothrow__, __leaf__, __pure__, __nonnull__(1)));
15 char *strdup(const char *) __attribute__((__nothrow__, __nonnull__(1)));
16 int strcmp(const char *, const char *) __attribute__((__nothrow__, __pure__, __nonnull__(1, 2)));
17 void *memchr(const void *, int, size_t) __attribute__((__nothrow__, __pure__, __nonnull__(1)));
18
19 #ifdef __cplusplus
20 }
21 #endif
22
23 #endif