wchar.h 898 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <stddef.h>
  8. #include <sys/cdefs.h>
  9. __BEGIN_DECLS
  10. #ifndef WEOF
  11. # define WEOF (0xffffffffu)
  12. #endif
  13. typedef __WINT_TYPE__ wint_t;
  14. typedef unsigned long int wctype_t;
  15. size_t wcslen(const wchar_t*);
  16. wchar_t* wcscpy(wchar_t*, const wchar_t*);
  17. wchar_t* wcsncpy(wchar_t*, const wchar_t*, size_t);
  18. int wcscmp(const wchar_t*, const wchar_t*);
  19. int wcsncmp(const wchar_t*, const wchar_t*, size_t);
  20. wchar_t* wcschr(const wchar_t*, int);
  21. const wchar_t* wcsrchr(const wchar_t*, wchar_t);
  22. wchar_t* wcscat(wchar_t*, const wchar_t*);
  23. wchar_t* wcsncat(wchar_t*, const wchar_t*, size_t);
  24. wchar_t* wcstok(wchar_t*, const wchar_t*, wchar_t**);
  25. long wcstol(const wchar_t*, wchar_t**, int);
  26. long long wcstoll(const wchar_t*, wchar_t**, int);
  27. wint_t btowc(int c);
  28. __END_DECLS