DOKK / manpages / debian 12 / libcanna1g-dev / RkGetKanji.3.en
RKGETKANJI(3) Library Functions Manual RKGETKANJI(3)

RkGetKanji - get the current candidate for the current clause

#include <canna/RK.h>
int RkGetkanji(cxnum, kanji, maxkanji)
int cxnum;
unsigned char *kanji;
int maxkanji;

RkGetKanji sets kanji in the area kanji. The resulting character string is truncated when its byte length exceeds maxkanji -1.

This function returns the length of the current candidate, or returns -1, without doing anything, if it has been run in a nonconversion mode context.