mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-23 14:42:07 +03:00
7e14ed1360
issue reported by nsz, but it's actually not just pedantic. the functions can take input of any arithmetic type, including floating point, and the behavior needs to be as if the conversion implicit in the function call took place.
46 lines
863 B
C
46 lines
863 B
C
#ifndef _WCTYPE_H
|
|
#define _WCTYPE_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define __NEED_wint_t
|
|
#define __NEED_wctrans_t
|
|
#define __NEED_wctype_t
|
|
|
|
#include <bits/alltypes.h>
|
|
|
|
#undef WEOF
|
|
#define WEOF (-1)
|
|
|
|
#undef iswdigit
|
|
|
|
int iswalnum(wint_t);
|
|
int iswalpha(wint_t);
|
|
int iswblank(wint_t);
|
|
int iswcntrl(wint_t);
|
|
int iswdigit(wint_t);
|
|
int iswgraph(wint_t);
|
|
int iswlower(wint_t);
|
|
int iswprint(wint_t);
|
|
int iswpunct(wint_t);
|
|
int iswspace(wint_t);
|
|
int iswupper(wint_t);
|
|
int iswxdigit(wint_t);
|
|
int iswctype(wint_t, wctype_t);
|
|
wint_t towctrans(wint_t, wctrans_t);
|
|
wint_t towlower(wint_t);
|
|
wint_t towupper(wint_t);
|
|
wctrans_t wctrans(const char *);
|
|
wctype_t wctype(const char *);
|
|
|
|
#undef iswdigit
|
|
#define iswdigit(a) (((unsigned)(a)-L'0') < 10)
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|