diff options
author | Tim J. Robbins <tjr@FreeBSD.org> | 2002-08-03 04:18:40 +0000 |
---|---|---|
committer | Tim J. Robbins <tjr@FreeBSD.org> | 2002-08-03 04:18:40 +0000 |
commit | 5b32667c57a712d6663c0425a2a4d1256459bd91 (patch) | |
tree | 2ae8f05b347bfb78175d1e7470f3233c5c8d4092 /include/wctype.h | |
parent | af932613d7fe1e1f6f93ab71feaa1508de1403e0 (diff) | |
download | src-5b32667c57a712d6663c0425a2a4d1256459bd91.tar.gz src-5b32667c57a712d6663c0425a2a4d1256459bd91.zip |
Notes
Diffstat (limited to 'include/wctype.h')
-rw-r--r-- | include/wctype.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/include/wctype.h b/include/wctype.h index 366dbdb5ff36..ab763ca3dda2 100644 --- a/include/wctype.h +++ b/include/wctype.h @@ -28,24 +28,33 @@ * $FreeBSD$ */ -#if 0 -/* XXX: not implemented */ #ifndef _WCTYPE_H_ #define _WCTYPE_H_ #include <sys/cdefs.h> #include <machine/ansi.h> +#include <ctype.h> + #ifdef _BSD_WINT_T_ typedef _BSD_WINT_T_ wint_t; #undef _BSD_WINT_T_ #endif +#ifndef _WCTYPE_T +typedef long wctype_t; +#define _WCTYPE_T +#endif + #ifndef WEOF #define WEOF ((wint_t)-1) #endif __BEGIN_DECLS +int iswctype(wint_t, wctype_t); +wctype_t wctype(const char *); +#if 0 +/* XXX: not implemented */ int iswalnum(wint_t); int iswalpha(wint_t); int iswblank(wint_t); @@ -60,7 +69,9 @@ int iswupper(wint_t); int iswxdigit(wint_t); wint_t towlower(wint_t); wint_t towupper(wint_t); +#endif __END_DECLS +#define iswctype(wc, charclass) __istype((wc), (charclass)) + #endif /* _WCTYPE_H_ */ -#endif |