---
name: "RkGetKanji"
section: "3"
platform: "linux"
package: "libcanna1g-dev"
version: "3.7p3-25"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/RkGetKanji"
---

# RkGetKanji(3)

get the current candidate for the current clause

## NAME

***RkGetKanji*** - get the current candidate for the current clause

## SYNOPSIS

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

## DESCRIPTION

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

## RETURN VALUE

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.
