RkCvtEuc(3)

RkCvtEuc3

Convert shift jis code to euc code

Usage

#include <canna/RK.h>
int RkCvtEuc(dst, maxdst, src, srclen)
unsigned char *dst;
int maxdst;
unsigned char *src;
int srclen;

Overview

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.

Return value

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

Releases

15 releases since Debian 2.0 (Hamm); the text changed 2 times.

  1. 2.0–3.0
  2. 3.1–7
  3. 8–13

From libcanna1g-dev 3.7p3-25 in Debian 13 (Trixie). Parsed by carta from the page's man source.