|
2 | 2 | #define _WCHAR_H |
3 | 3 |
|
4 | 4 | #include <__wchar_def.h> |
| 5 | +#include <__mbstate.h> |
| 6 | +#include <stdio.h> |
| 7 | +#include <time.h> |
5 | 8 |
|
6 | 9 | __BEGIN_DECLS |
7 | 10 |
|
@@ -65,6 +68,90 @@ int wcscmp(const wchar_t *s1, const wchar_t *s2) |
65 | 68 | int wcsncmp(const wchar_t *s1, const wchar_t *s2, size_t n) |
66 | 69 | __attribute__((nonnull(1, 2))); |
67 | 70 |
|
| 71 | +int wprintf(const wchar_t *__restrict format, ...); |
| 72 | + |
| 73 | +int vwprintf(const wchar_t *__restrict format, va_list va); |
| 74 | + |
| 75 | +int swprintf(wchar_t *__restrict buffer, size_t count, const wchar_t *__restrict format, ...); |
| 76 | + |
| 77 | +int vswprintf(wchar_t *__restrict buffer, size_t count, const wchar_t *__restrict format, va_list va); |
| 78 | + |
| 79 | +int fwprintf(FILE *__restrict stream, const wchar_t *__restrict format, ...); |
| 80 | + |
| 81 | +int vfwprintf(FILE *__restrict stream, const wchar_t *__restrict format, va_list va); |
| 82 | + |
| 83 | +int wscanf(const wchar_t *__restrict format, ...); |
| 84 | + |
| 85 | +int vwscanf(const wchar_t *__restrict format, va_list arg); |
| 86 | + |
| 87 | +int swscanf(const wchar_t *__restrict s, const wchar_t *__restrict format, ...); |
| 88 | + |
| 89 | +int vswscanf(const wchar_t *__restrict s, const wchar_t *__restrict format, va_list arg); |
| 90 | + |
| 91 | +int fwscanf(FILE *__restrict stream, const wchar_t *__restrict format, ...); |
| 92 | + |
| 93 | +int vfwscanf(FILE *__restrict stream, const wchar_t *__restrict format, va_list arg); |
| 94 | + |
| 95 | +wint_t fgetwc(FILE *stream); |
| 96 | + |
| 97 | +wchar_t *fgetws(wchar_t *__restrict s, int n, FILE *__restrict stream); |
| 98 | + |
| 99 | +wint_t fputwc(wchar_t c, FILE *stream); |
| 100 | + |
| 101 | +int fputws(const wchar_t *__restrict s, FILE *__restrict stream); |
| 102 | + |
| 103 | +int fwide(FILE *stream, int mode); |
| 104 | + |
| 105 | +wint_t getwc(FILE *stream); |
| 106 | + |
| 107 | +wint_t getwchar(void); |
| 108 | + |
| 109 | +wint_t putwc(wchar_t c, FILE *stream); |
| 110 | + |
| 111 | +wint_t putwchar(wchar_t c); |
| 112 | + |
| 113 | +wint_t ungetwc(wint_t c, FILE *stream); |
| 114 | + |
| 115 | +float wcstof(const wchar_t *__restrict nptr, wchar_t **__restrict endptr); |
| 116 | + |
| 117 | +double wcstod(const wchar_t *__restrict nptr, wchar_t **__restrict endptr); |
| 118 | + |
| 119 | +long double wcstold(const wchar_t *__restrict nptr, wchar_t **__restrict endptr); |
| 120 | + |
| 121 | +long wcstol(const wchar_t *__restrict nptr, wchar_t **__restrict endptr, int base); |
| 122 | + |
| 123 | +long long wcstoll(const wchar_t *__restrict nptr, wchar_t **__restrict endptr, int base); |
| 124 | + |
| 125 | +unsigned long wcstoul(const wchar_t *__restrict nptr, wchar_t **__restrict endptr, int base); |
| 126 | + |
| 127 | +unsigned long long wcstoull(const wchar_t *__restrict nptr, wchar_t **__restrict endptr, int base); |
| 128 | + |
| 129 | +size_t wcsftime(wchar_t *__restrict s, size_t maxsize, const wchar_t *__restrict format, const struct tm *__restrict timeptr); |
| 130 | + |
| 131 | +int wcscoll(const wchar_t *s1, const wchar_t *s2); |
| 132 | + |
| 133 | +size_t wcsxfrm(wchar_t *__restrict s1, const wchar_t *__restrict s2, size_t n); |
| 134 | + |
| 135 | +wint_t btowc(int c); |
| 136 | + |
| 137 | +int wctob(wint_t c); |
| 138 | + |
| 139 | +int mbsinit(const mbstate_t *ps); |
| 140 | + |
| 141 | +size_t mbrlen(const char *__restrict s, size_t n, mbstate_t *__restrict ps); |
| 142 | + |
| 143 | +size_t mbrtowc(wchar_t *__restrict pwc, const char *__restrict s, size_t n, mbstate_t *__restrict ps); |
| 144 | + |
| 145 | +size_t wcrtomb(char *__restrict s, wchar_t wc, mbstate_t *__restrict ps); |
| 146 | + |
| 147 | +size_t mbsrtowcs(wchar_t *__restrict dst, const char **__restrict src, size_t len, mbstate_t *__restrict ps); |
| 148 | + |
| 149 | +size_t wcsrtombs(char *__restrict dst, const wchar_t **__restrict src, size_t len, mbstate_t *__restrict ps); |
| 150 | + |
| 151 | +size_t mbsnrtowcs(wchar_t *__restrict dest, const char **__restrict src, size_t nms, size_t size, mbstate_t *__restrict ps); |
| 152 | + |
| 153 | +size_t wcsnrtombs(char *__restrict dest, const wchar_t **__restrict src, size_t nwc, size_t size, mbstate_t *__restrict ps); |
| 154 | + |
68 | 155 | __END_DECLS |
69 | 156 |
|
70 | 157 | #endif /* _WCHAR_H */ |
0 commit comments