string.h 799 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (C) 2019 Intel Corporation. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. #ifndef _WAMR_LIBC_STRING_H
  6. #define _WAMR_LIBC_STRING_H
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. typedef unsigned int size_t;
  11. int memcmp(const void *s1, const void *s2, size_t n);
  12. void *memcpy(void *dest, const void *src, size_t n);
  13. void *memmove(void *dest, const void *src, size_t n);
  14. void *memset(void *s, int c, size_t n);
  15. char *strchr(const char *s, int c);
  16. int strcmp(const char *s1, const char *s2);
  17. char *strcpy(char *dest, const char *src);
  18. size_t strlen(const char *s);
  19. int strncmp(const char * str1, const char * str2, size_t n);
  20. char *strncpy(char *dest, const char *src, unsigned long n);
  21. char * strdup(const char *s);
  22. #ifdef __cplusplus
  23. }
  24. #endif
  25. #endif