string.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 long size_t;
  11. int
  12. memcmp(const void *s1, const void *s2, size_t n);
  13. void *
  14. memcpy(void *dest, const void *src, size_t n);
  15. void *
  16. memmove(void *dest, const void *src, size_t n);
  17. void *
  18. memset(void *s, int c, size_t n);
  19. void *
  20. memchr(const void *s, int c, size_t n);
  21. int
  22. strncasecmp(const char *s1, const char *s2, size_t n);
  23. size_t
  24. strspn(const char *s, const char *accept);
  25. size_t
  26. strcspn(const char *s, const char *reject);
  27. char *
  28. strstr(const char *s, const char *find);
  29. char *
  30. strchr(const char *s, int c);
  31. int
  32. strcmp(const char *s1, const char *s2);
  33. char *
  34. strcpy(char *dest, const char *src);
  35. size_t
  36. strlen(const char *s);
  37. int
  38. strncmp(const char *str1, const char *str2, size_t n);
  39. char *
  40. strncpy(char *dest, const char *src, unsigned long n);
  41. char *
  42. strdup(const char *s);
  43. #ifdef __cplusplus
  44. }
  45. #endif
  46. #endif