ckconv(3K) 3/11/92 ckconv(3K)
NAME
ckconv, cjistosj, cjistouj, csjtojis, csjtouj, cujtojis, cujtosj -
kanji character conversions
SYNOPSIS
cc [flag...] file... -lkanji [library...]
#include <mlx-j/kanji.h>
unsigned char *ckconv(unsigned char *dest, int ofmt,
unsigned char *src, int ifmt);
unsigned char *cjistosj(unsigned char *dest, unsigned char *src);
unsigned char *cjistouj(unsigned char *dest, unsigned char *src);
unsigned char *csjtojis(unsigned char *dest, unsigned char *src);
unsigned char *csjtouj(unsigned char *dest, unsigned char *src);
unsigned char *cujtojis(unsigned char *dest, unsigned char *src);
unsigned char *cujtosj(unsigned char *dest, unsigned char *src);
DESCRIPTION
These routines handle arbitrary conversions of EUC, Shift-JIS, JIS,
Old JIS and NEC-JIS encoded characters.
src points at the source character, dest points at a destination
buffer.
ifmt and ofmt determine the input and output code and may take the
following values:
KJJIS - (New) JIS
KJOJIS - Old JIS
KJNECJIS - NEC-JIS
KJSJIS - Shift-JIS
KJEUC - Extended UNIX Code
ckconv converts characters between any two encodings. The remaining
routines do specific conversions:
cjistosj - JIS to Shift-JIS
cjistouj - JIS to EUC
csjtojis - Shift-JIS to JIS
csjtouj - Shift-JIS to EUC
cujtojis - EUC to JIS
cujtosj - EUC to Shift-JIS
RETURN VALUE
Successful conversion places the (null-terminated) converted character
Page 1 Reliant UNIX 5.44 3, 1911
ckconv(3K) 3/11/92 ckconv(3K)
into the destination buffer and returns dest. If errors are detected
during conversion, NULL is returned, and dest contains garbage.
FILES
/usr/lib/libkanji.a
SEE ALSO
fkconv(3K), skconv(3K).
Page 2 Reliant UNIX 5.44 3, 1911