string.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #pragma once
  2. #include <stddef.h>
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. void *memset(void *ptr, int value, size_t num);
  7. void *memcpy(void *destination, const void *source, size_t num);
  8. int memcmp(const void *ptr1, const void *ptr2, size_t num);
  9. size_t strlen(const char *str);
  10. char *strcpy(char *destination, const char *source);
  11. char *strncpy(char *destination, const char *source, size_t num);
  12. char *strcat(char *destination, const char *source);
  13. // built-in in Clang
  14. char *strstr(const char *str1, const char *str2);
  15. int strcmp(const char *str1, const char *str2);
  16. int strncmp(const char *str1, const char *str2, size_t num);
  17. size_t wcslen(const wchar_t *str);
  18. wchar_t *wcscpy(wchar_t *destination, const wchar_t *source);
  19. wchar_t *wcsncpy(wchar_t *destination, const wchar_t *source, size_t num);
  20. wchar_t *wcscat(wchar_t *destination, const wchar_t *source);
  21. wchar_t *wcsstr(wchar_t *str1, const wchar_t *str2);
  22. int wcscmp(const wchar_t *str1, const wchar_t *str2);
  23. int wcsncmp(const wchar_t *str1, const wchar_t *str2, size_t num);
  24. #ifdef __cplusplus
  25. }
  26. #endif