Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
wctob(3) OSS Library Calls Reference Manual
NAME
wctob - Converts wide-character to single-byte characater
LIBRARY
H-series and J-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCRTLDLL
32-bit H-series and J-series OSS processes: /G/system/zdllnnn/zcrtldll
64-bit H-series and J-series OSS processes: /G/system/zdllnnn/ycrtldll
SYNOPSIS
#include <wchar.h>
#include <stdio.h> /* optional except for POSIX.1 */
int wctob(wint_t c);
PARAMETERS
c The character to be evaluated and converted.
DESCRIPTION
The wctob( ) function determines whether the character c is a valid wide-character. If c is a valid
wide-character, the wctob( ) function converts the character to a one-byte character.
RETURN VALUES
The wctob( ) function returns one of these values:
[EOF] The c parameter does not correspond to a wide-character with length one.
A one-byte character representation of c
If c is a valid wide-character with length one, the wctob( ) function returns a
one-byte character representation of c.
ERRORS
No errors are returned.
RELATED INFORMATION
Functions: btowc(3).
STANDARDS CONFORMANCE
The behavior of this function conforms to the ISO/IEC 9899:1999 standard.
8−56 Hewlett-Packard Company 527187-017