6 size_t __strftime_l(char *restrict, size_t, const char *restrict, const struct tm *restrict, locale_t);
8 size_t __wcsftime_l(wchar_t *restrict wcs, size_t n, const wchar_t *restrict f, const struct tm *restrict tm, locale_t loc)
21 if (strchr("EO", (in[1]=*f++)))
23 k = __strftime_l(out, sizeof out, in, tm, loc);
25 k = mbsrtowcs(wcs, (const char *[]){out}, n, 0);
26 if (k==(size_t)-1) return 0;
35 size_t wcsftime(wchar_t *restrict wcs, size_t n, const wchar_t *restrict f, const struct tm *restrict tm)
37 return __wcsftime_l(wcs, n, f, tm, LC_GLOBAL_LOCALE);