zig/lib/libc/include/wasm-wasi-musl/__header_string.h
Jakub Konka 7b74de7d71 wasi,cc: fix naming and add stubs for building
Rename include dir to match the convention:
  from `wasm32-wasi` to `wasm-wasi-musl`

Add building stubs which will be used to build and cache WASI
libc sysroot.
2021-05-20 16:54:00 +02:00

23 lines
609 B
C
Vendored

#ifndef __wasilibc___header_string_h
#define __wasilibc___header_string_h
#define __need_size_t
#define __need_NULL
#include <stddef.h>
#include <__functions_memcpy.h>
#ifdef __cplusplus
extern "C" {
#endif
size_t strlen(const char *) __attribute__((__nothrow__, __leaf__, __pure__, __nonnull__(1)));
char *strdup(const char *) __attribute__((__nothrow__, __nonnull__(1)));
int strcmp(const char *, const char *) __attribute__((__nothrow__, __pure__, __nonnull__(1, 2)));
void *memchr(const void *, int, size_t) __attribute__((__nothrow__, __pure__, __nonnull__(1)));
#ifdef __cplusplus
}
#endif
#endif