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

NAME

6       RkCvtEuc - convert shift JIS code to EUC code
7

SYNOPSIS

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

DESCRIPTION

17       RkCvtEuc  converts the srclen bytes of shift JIS code data to EUC code,
18       starting at the area src.  A null character in src is  not  interpreted
19       as  the end of the string.  The conversion result is stored in the area
20       dst.  Characters that are not subject to conversion are copied as  they
21       are.   The conversion result is truncated to adjust to character bound‐
22       aries in the EUC code when its byte length exceeds maxdst -1.   dst  is
23       padded with null characters at the end if possible.
24
25       NULL  can  be  specified  in dst.  NULL overrides the entire conversion
26       result.
27

RETURN VALUE

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