Export (0) Print
Expand All
div
eof
Expand Minimize

_isctype, iswctype, _isctype_l, _iswctype_l 

Tests c for the property specified by the desc argument. For each valid value of desc, there is an equivalent wide-character classification routine.


int _isctype(
   int c,
   _ctype_t desc
);
int _isctype_l(
   int c,
   _ctype_t desc,
   _locale_t locale
);
int iswctype(
   wint_t c,
   wctype_t desc 
);
int _iswctype_l(
   wint_t c,
   wctype_t desc,
   _locale_t locale
);

Parameters

c

Integer to test.

desc

Property to test for. This is normally retrieved using ctype or wctype.

locale

The locale to use for any locale-dependent tests.

_isctype and iswctype return a nonzero value if c has the property specified by desc in the current locale or 0 if it does not. The versions of these functions with the _l suffix are identical except that they use the locale passed in instead of the current locale for their locale-dependent behavior.

Generic-Text Routine Mappings
Tchar.h routine _UNICODE and _MBCS not defined _MBCS defined _UNICODE defined

n/a

_isctype

n/a

_iswctype

n/a

_isctype_l

n/a

_iswctype_l

Routine Required header Compatibility

_isctype

<ctype.h>

Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition, Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003

iswctype

<ctype.h> or <wchar.h>

ANSI, Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition, Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003

_isctype_l

<ctype.h>

Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition, Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003

_iswctype_l

<ctype.h> or <wchar.h>

Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition, Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003

For more compatibility information, see Compatibility in the Introduction.

Libraries

All versions of the C run-time libraries.

Not applicable. To call the standard C function, use PInvoke. For more information, see Platform Invoke Examples.

Community Additions

ADD
Show:
© 2014 Microsoft