#ifndef _LIBC_WCHAR_H #define _LIBC_WCHAR_H #pragma once #include #ifdef __cplusplus extern "C" { #endif typedef unsigned int wint_t; /* Opaque shift state for the (byte-oriented) C locale. */ typedef struct { unsigned long __opaque; } mbstate_t; #define WEOF ((wint_t)-1) /* Byte-oriented C locale only: one byte, one character. */ size_t mbstowcs(wchar_t *dst, const char *src, size_t n); int mblen(const char *s, size_t n); size_t mbrtowc(wchar_t *pwc, const char *s, size_t n, mbstate_t *ps); #ifdef __cplusplus } #endif #endif /* _LIBC_WCHAR_H */