1RKINITIALIZE(3) Library Functions Manual RKINITIALIZE(3)
2
3
4
6 RkInitialize - initialize the kana-kanji conversion functions
7
9 #include <canna/RK.h>
10 int RkInitialize(dhdpath)
11 char *dhdpath;
12
14 RkInitialize initiates the kana-kanji conversion functions. dhdpath
15 names the dictionary home directory.
16
17 Because this library permits multiple kana-kanji conversions to proceed
18 concurrently, it uses the conversion context method of control to man‐
19 age the kana-kanji conversions. Each context contains internal data
20 needed to perform a kana-kanji conversion.
21
22 Users identify the conversion contexts from one another by their con‐
23 text number. A context number is an integer of 0 or greater and is
24 used as the first parameter of the kana-kanji conversion function.
25
26 Right after the kana-kanji conversion functions are initialized by
27 RkInitialize, only the standard context with context number 0 exists.
28 Applications using only one context can use the standard context.
29
31 This function returns 0 if successful; otherwise, it returns -1.
32
34 RkFinalize[24m(3)
35
36
37
38 RKINITIALIZE(3)