Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
RKCVTZEN(3)		   Library Functions Manual		   RKCVTZEN(3)

NAME
       RkCvtZen	 -  convert ASCII characters and single-width katakana to dou-
       ble-width characters

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

DESCRIPTION
       RkCvtZen	converts the srclen bytes of ASCII character and  single-width
       katakana	 data  to double-width character, 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 area.	 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.  EUC code is used to represent both	src and	dst.

       NULL can	be specified in	dst.  NULL overrides the entire	conversion re-
       sult.

RETURN VALUE
       This  function returns the byte length of the conversion	result,	or re-
       turns 0 if the value of maxdst is invalid.

								   RKCVTZEN(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=RkCvtZen&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help