Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.

core.stdc.wchar_

D header file for C99.
This module contains bindings to selected types and functions from the standard C header <wchar.h>. Note that this is not automatically generated, and may omit some types/functions from the original C header.
License:
Distributed under the Boost Software License 1.0. (See accompanying file LICENSE)
Authors:
Sean Kelly
Standards:
ISO/IEC 9899:1999 (E)
struct mbstate_t;
alias wint_t = dchar;
enum wchar_t WEOF;
nothrow @nogc @system int fwprintf(FILE* stream, in wchar_t* format, ...);
nothrow @nogc @system int fwscanf(FILE* stream, in wchar_t* format, ...);
nothrow @nogc @system int swprintf(wchar_t* s, size_t n, in wchar_t* format, ...);
nothrow @nogc @system int swscanf(in wchar_t* s, in wchar_t* format, ...);
nothrow @nogc @system int vfwprintf(FILE* stream, in wchar_t* format, va_list arg);
nothrow @nogc @system int vfwscanf(FILE* stream, in wchar_t* format, va_list arg);
nothrow @nogc @system int vswprintf(wchar_t* s, size_t n, in wchar_t* format, va_list arg);
nothrow @nogc @system int vswscanf(in wchar_t* s, in wchar_t* format, va_list arg);
nothrow @nogc @system int vwprintf(in wchar_t* format, va_list arg);
nothrow @nogc @system int vwscanf(in wchar_t* format, va_list arg);
nothrow @nogc @system int wprintf(in wchar_t* format, ...);
nothrow @nogc @system int wscanf(in wchar_t* format, ...);
nothrow @nogc @trusted wint_t fgetwc(FILE* stream);
nothrow @nogc @trusted wint_t fputwc(wchar_t c, FILE* stream);
nothrow @nogc @system wchar_t* fgetws(wchar_t* s, int n, FILE* stream);
nothrow @nogc @system int fputws(in wchar_t* s, FILE* stream);
nothrow @nogc @trusted wint_t getwchar();
nothrow @nogc @trusted wint_t putwchar(wchar_t c);
nothrow @nogc @trusted wint_t getwc(FILE* stream);
nothrow @nogc @trusted wint_t putwc(wchar_t c, FILE* stream);
nothrow @nogc @trusted wint_t ungetwc(wint_t c, FILE* stream);
nothrow @nogc @trusted int fwide(FILE* stream, int mode);
nothrow @nogc @system double wcstod(in wchar_t* nptr, wchar_t** endptr);
nothrow @nogc @system float wcstof(in wchar_t* nptr, wchar_t** endptr);
nothrow @nogc @system real wcstold(in wchar_t* nptr, wchar_t** endptr);
nothrow @nogc @system c_long wcstol(in wchar_t* nptr, wchar_t** endptr, int base);
nothrow @nogc @system long wcstoll(in wchar_t* nptr, wchar_t** endptr, int base);
nothrow @nogc @system c_ulong wcstoul(in wchar_t* nptr, wchar_t** endptr, int base);
nothrow @nogc @system ulong wcstoull(in wchar_t* nptr, wchar_t** endptr, int base);
pure nothrow @nogc @system wchar_t* wcscpy(return wchar_t* s1, scope const wchar_t* s2);
pure nothrow @nogc @system wchar_t* wcsncpy(return wchar_t* s1, scope const wchar_t* s2, size_t n);
pure nothrow @nogc @system wchar_t* wcscat(return wchar_t* s1, scope const wchar_t* s2);
pure nothrow @nogc @system wchar_t* wcsncat(return wchar_t* s1, scope const wchar_t* s2, size_t n);
pure nothrow @nogc @system int wcscmp(scope const wchar_t* s1, scope const wchar_t* s2);
nothrow @nogc @system int wcscoll(scope const wchar_t* s1, scope const wchar_t* s2);
pure nothrow @nogc @system int wcsncmp(scope const wchar_t* s1, scope const wchar_t* s2, size_t n);
nothrow @nogc @system size_t wcsxfrm(scope wchar_t* s1, scope const wchar_t* s2, size_t n);
pure nothrow @nogc @system inout(wchar_t)* wcschr(return inout(wchar_t)* s, wchar_t c);
pure nothrow @nogc @system size_t wcscspn(scope const wchar_t* s1, scope const wchar_t* s2);
pure nothrow @nogc @system inout(wchar_t)* wcspbrk(return inout(wchar_t)* s1, scope const wchar_t* s2);
pure nothrow @nogc @system inout(wchar_t)* wcsrchr(return inout(wchar_t)* s, wchar_t c);
pure nothrow @nogc @system size_t wcsspn(scope const wchar_t* s1, scope const wchar_t* s2);
pure nothrow @nogc @system inout(wchar_t)* wcsstr(return inout(wchar_t)* s1, scope const wchar_t* s2);
nothrow @nogc @system wchar_t* wcstok(return wchar_t* s1, scope const wchar_t* s2, wchar_t** ptr);
pure nothrow @nogc @system size_t wcslen(scope const wchar_t* s);
pure nothrow @nogc @system wchar_t* wmemchr(return const wchar_t* s, wchar_t c, size_t n);
pure nothrow @nogc @system int wmemcmp(scope const wchar_t* s1, scope const wchar_t* s2, size_t n);
pure nothrow @nogc @system wchar_t* wmemcpy(return wchar_t* s1, scope const wchar_t* s2, size_t n);
pure nothrow @nogc @system wchar_t* wmemmove(return wchar_t* s1, scope const wchar_t* s2, size_t n);
pure nothrow @nogc @system wchar_t* wmemset(return wchar_t* s, wchar_t c, size_t n);
nothrow @nogc @system size_t wcsftime(wchar_t* s, size_t maxsize, in wchar_t* format, in tm* timeptr);
nothrow @nogc @trusted wint_t btowc(int c);
nothrow @nogc @trusted int wctob(wint_t c);
nothrow @nogc @system int mbsinit(in mbstate_t* ps);
nothrow @nogc @system size_t mbrlen(in char* s, size_t n, mbstate_t* ps);
nothrow @nogc @system size_t mbrtowc(wchar_t* pwc, in char* s, size_t n, mbstate_t* ps);
nothrow @nogc @system size_t wcrtomb(char* s, wchar_t wc, mbstate_t* ps);
nothrow @nogc @system size_t mbsrtowcs(wchar_t* dst, in char** src, size_t len, mbstate_t* ps);
nothrow @nogc @system size_t wcsrtombs(char* dst, in wchar_t** src, size_t len, mbstate_t* ps);