You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

wchar.h 582B

1234567891011121314151617181920212223242526272829
  1. #ifndef WCHAR_H
  2. #define WCHAR_H
  3. FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
  4. #include <stddef.h>
  5. typedef void mbstate_t;
  6. /**
  7. * Convert wide character to multibyte sequence
  8. *
  9. * @v buf Buffer
  10. * @v wc Wide character
  11. * @v ps Shift state
  12. * @ret len Number of characters written
  13. *
  14. * This is a stub implementation, sufficient to handle basic ASCII
  15. * characters.
  16. */
  17. static inline __attribute__ (( always_inline ))
  18. size_t wcrtomb ( char *buf, wchar_t wc, mbstate_t *ps __unused ) {
  19. *buf = wc;
  20. return 1;
  21. }
  22. extern size_t wcslen ( const wchar_t *string );
  23. #endif /* WCHAR_H */