ceuctoibmj(3K) 3/11/92 ceuctoibmj(3K)
NAME
ceuctoibmj - convert a character from EUC to IBM host code
SYNOPSIS
cc [flag...] file... -lkanji [library...]
#include <mlx-j/kanji.h>
unsigned char *ceuctoibmj(unsigned char *dest, unsigned char *src);
DESCRIPTION
ceuctoibmj converts a Japanese EUC codeset 1 or codeset 2 character
into IBM Japanese (Katakana) Kanji Mixed Host Code (IBM CCSID's 13218
and 09122).
src points at the EUC character to be converted, dest points at the
buffer to receive the result. The destination buffer must be at least
three bytes long.
If the source buffer contains a codeset 1 (kanji) character, the
destination buffer is filled with the corresponding 2-byte host code
character. If the source buffer contains a codeset 2 (half-size
katakana) character, the first byte of the destination buffer is set
to the corresponding host code byte value. In either case, the
destination buffer is null-terminated.
RETURN VALUE
Successful conversion returns a value of dest. If the source buffer
does not contain a valid EUC codeset 1 or codeset 2 character, or if
it contains a kanji character which does not exist in IBM host code,
the return value is NULL.
NOTES
The length of the result can be determined by examining the second
byte. If it is zero, the result is a single-byte half-size kana, if it
is non-zero, the result is a two-byte kanji.
FILES
/usr/lib/libkanji.a
SEE ALSO
fkeuctoibmj(3K), seuctoibmj(3K), cibmjtoeuc(3K).
Page 1 Reliant UNIX 5.44 3, 1911