__CSNameType() — Return codeset name type
Standards
Standards / Extensions | C or C++ | Dependencies |
---|---|---|
z/OS® UNIX |
both | z/OS V1R2 |
Format
#include <_Ccsid.h>
__csType __CSNameType(char *codesetName);
General description
The __CSNameType() function returns a __csType value which indicates the corresponding codeset name type.
Returned value
If codesetName is
valid, __CSNameType() returns one of the following __csType values,
which are defined in <_Ccsid.h>:
- _CSTYPE_EBCDIC
- _CSTYPE_ASCII
- _CSTYPE_UCS2
- _CSTYPE_UTF8
- _CSTYPE_UTF16
- _CSTYPE_UTF32
If codesetName is not valid, __CSNameType() returns _CSTYPE_INVALID.