1RKCVTZEN(3)                Library Functions Manual                RKCVTZEN(3)
2
3
4

NAME

6       RkCvtZen  -  convert ASCII characters and single-width katakana to dou‐
7       ble-width characters
8

SYNOPSIS

10       #include <canna/RK.h>
11       int RkCvtZen(dst, maxdst, src, srclen)
12       unsigned char *dst;
13       int maxdst;
14       unsigned char *src;
15       int srclen;
16

DESCRIPTION

18       RkCvtZen converts the srclen bytes of ASCII character and  single-width
19       katakana  data  to double-width character, starting at the area src.  A
20       null character in src is not interpreted as the end of the string.  The
21       conversion  result  is stored in the area dst.  Characters that are not
22       subject to conversion are copied as they area.  The  conversion  result
23       is truncated to adjust to character boundaries in the EUC code when its
24       byte length exceeds maxdst -1.  dst is padded with null  characters  at
25       the end if possible.  EUC code is used to represent both src and dst.
26
27       NULL  can  be  specified  in dst.  NULL overrides the entire conversion
28       result.
29

RETURN VALUE

31       This function returns the byte length  of  the  conversion  result,  or
32       returns 0 if the value of maxdst is invalid.
33
34
35
36                                                                   RKCVTZEN(3)
Impressum