Also expose `strlen` through `string.h` instead of `stdio.h`.
(cherry picked from commit f4ca3d95ca)
Co-authored-by: Trim21 <trim21.me@gmail.com>
18 lines
467 B
C
18 lines
467 B
C
#ifndef TREE_SITTER_WASM_STRING_H_
|
|
#define TREE_SITTER_WASM_STRING_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
int memcmp(const void *lhs, const void *rhs, size_t count);
|
|
|
|
void *memcpy(void *restrict dst, const void *restrict src, size_t size);
|
|
|
|
void *memmove(void *dst, const void *src, size_t count);
|
|
|
|
void *memset(void *dst, int value, size_t count);
|
|
|
|
int strncmp(const char *left, const char *right, size_t n);
|
|
|
|
size_t strlen(const char *str);
|
|
|
|
#endif // TREE_SITTER_WASM_STRING_H_
|