diff options
author | Jakob Kaivo <jkk@ung.org> | 2019-02-08 18:42:39 -0500 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2019-02-08 18:42:39 -0500 |
commit | 7ef8a7379f7f7d09e71ccae2a0b688c3cd80423f (patch) | |
tree | 092ab0aed1769117fd7b28b8592f6f96b0e0d5af /src/wctype/iswctype.c | |
parent | 6acf19370e8adff79cd83b257d3f04aeaf2a59dd (diff) |
merge sources into single tree
Diffstat (limited to 'src/wctype/iswctype.c')
-rw-r--r-- | src/wctype/iswctype.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/wctype/iswctype.c b/src/wctype/iswctype.c new file mode 100644 index 00000000..fd24051a --- /dev/null +++ b/src/wctype/iswctype.c @@ -0,0 +1,32 @@ +#include <wctype.h> +#include "wchar.h" +#include "nonstd/assert.h" + +/** test whether a wide character is part of a character class **/ +int iswctype(wint_t wc, wctype_t desc) +{ + ASSERT_REPRESENTABLE(wc, WCHAR_MIN, WCHAR_MAX, "wchar_t", WEOF); + ASSERT_REPRESENTABLE(desc, 1, __libc.wctype.nwctype, "wctype_t", 0); + + /* TODO: actual work */ + (void)wc; (void)desc; + + return 0; +} + +/*** +The fn(iswctype) function tests whether arg(wc) is a wide character in the +character class represented by arg(desc), which must have been previously +returned by fn(wctype), in the current locale. +***/ + +/* RETURN(0): arg(wc) is not in the character class represented by arg(desc) */ +/* RETURN(NZ): arg(wc) is in the character class represented by arg(desc) */ + +/* UNSPECIFIED: - */ +/* IMPLEMENTATION: - */ +/* LOCALE: LC_CTYPE */ + +/* +STDC(199409) +*/ |