logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

RkCvtEuc - convert shift JIS code to EUC code

Description

RkCvtEuc  converts the srclen bytes of shift JIS code data to EUC code, starting at the area src.  A null
       character in src is not interpreted as the end of the string.  The conversion result  is  stored  in  the
       area  dst.   Characters that are not subject to conversion are copied as they are.  The conversion result
       is truncated to adjust to character boundaries in the EUC code when its byte length  exceeds  maxdst  -1.
       dst is padded with null characters at the end if possible.

       NULL can be specified in dst.  NULL overrides the entire conversion result.

Name

RkCvtEuc - convert shift JIS code to EUC code

Return Value

       This  function  returns  the byte length of the conversion result, or returns 0 if the value of maxdst is
       invalid.

                                                                                                     RKCVTEUC(3)

Synopsis

#include<canna/RK.h>intRkCvtEuc(dst,maxdst,src,srclen)unsignedchar*dst;intmaxdst;unsignedchar*src;intsrclen;

See Also