RkInitialize(3)

RkInitialize3

Initialize the kana-kanji conversion functions

Usage

#include <canna/RK.h>
int RkInitialize(dhdpath)
char *dhdpath;

Overview

RkInitialize initiates the kana-kanji conversion functions. dhdpath names the dictionary home directory.

Because this library permits multiple kana-kanji conversions to proceed concurrently, it uses the conversion context method of control to manage the kana-kanji conversions. Each context contains internal data needed to perform a kana-kanji conversion.

Users identify the conversion contexts from one another by their context number. A context number is an integer of 0 or greater and is used as the first parameter of the kana-kanji conversion function.

Right after the kana-kanji conversion functions are initialized by RkInitialize, only the standard context with context number 0 exists. Applications using only one context can use the standard context.

Return value

This function returns 0 if successful; otherwise, it returns -1.

Releases

15 releases since Debian 2.0 (Hamm); the text changed 1 time.

  1. 2.0–3.0
  2. 3.1–13

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