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

# RkGetStat(3)

get analysis information about the current candidate

## NAME

***RkGetStat*** - get analysis information about the current candidate

## SYNOPSIS

```
#include <canna/RK.h>
int RkGetStat(cxnum, stat)
int cxnum;
Rkstat *stat;
```

## DESCRIPTION

*RkGetStat* gets analysis information about the current candidate.  The fields of the structure *stat* are loaded with the following:

- ***bunnum***

  Current clause number

- ***candnum***

  Current candidate number

- ***maxcand***

  Number of candidates for the current clause

- ***diccand***

  ***maxcand*** less the mode specification of [***RkBgnBun***(3)](/RkBgnBun/3.md)

- ***ylen***

  Byte length of the reading of the current candidate

- ***klen***

  Byte length of the kanji of the current candidate

- ***tlen***

  Number of words making up the current candidate

## RETURN VALUE

This function returns ***0***, or returns ***-1***, without doing anything, if it has been run in a nonconversion mode context.
