string.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  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 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. void *memchr(const void *s, int c, size_t n);
  16. int strncasecmp(const char *s1, const char *s2, size_t n);
  17. size_t strspn(const char *s, const char *accept);
  18. size_t strcspn(const char *s, const char *reject);
  19. char *strstr(const char *s, const char *find);
  20. char *strchr(const char *s, int c);
  21. int strcmp(const char *s1, const char *s2);
  22. char *strcpy(char *dest, const char *src);
  23. size_t strlen(const char *s);
  24. int strncmp(const char * str1, const char * str2, size_t n);
  25. char *strncpy(char *dest, const char *src, unsigned long n);
  26. char * strdup(const char *s);
  27. #ifdef __cplusplus
  28. }
  29. #endif
  30. #endif