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

# RkPrev(3)

set the previous candidate as the current candidate

## NAME

***RkPrev*** - set the previous candidate as the current candidate

## SYNOPSIS

```
#include <canna/RK.h>
int RkPrev(cxnum)
int cxnum;
```

## DESCRIPTION

*RkPrev* sets the previous candidate as the current candidate or, if the current candidate is the first candidate, moves to the last candidate.

## RETURN VALUE

If successful, this function moves the current candidate in the context and returns the current candidate number after the move.  It returns ***0***, without doing anything, if it has been run in a nonconversion mode context.
