---
name: "rarray_last"
section: "3"
platform: "linux"
package: "libroy-dev"
version: "1.0.8-1"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/rarray_last"
---

# rarray\_last(3)

return entries in a Roy Array.

## NAME

rarray\_last, rarray\_nth - return entries in a Roy Array.

## SYNOPSIS

\#include \<roy.h\>

void \* rarray\_last (RArray \**array*);

void \* rarray\_nth (RArray \**array*, unsigned int *nth*);

## DESCRIPTION

[*rarray\_last*(3)](/rarray_last/3.md) returns a pointer to the last entry in *array*. No entries are removed from the array during this operation.  It is identical to [*rarray\_peek*(3)](/rarray_peek/3.md).

[*rarray\_nth*(3)](/rarray_nth/3.md) returns a pointer to the *nth* entry in *array*.

## RETURN VALUE

These functions return pointers to entries in the array.  These entries must then be cast to the appropriate types as defined when created using [*rarray\_new*(3)](/rarray_new/3.md).

## ERRORS

These calls produce no errors.

## SEE ALSO

[*rarray*(3)](/rarray/3.md), [*rarray\_append*(3)](/rarray_append/3.md),  [*rarray\_free*(3)](/rarray_free/3.md), [*rarray\_len*(3)](/rarray_len/3.md),  [*rarray\_new*(3)](/rarray_new/3.md), [*rarray\_nth*(3)](/rarray_nth/3.md),  [*rarray\_peek*(3)](/rarray_peek/3.md), [*rarray\_pop*(3)](/rarray_pop/3.md),  [*rarray\_push*(3)](/rarray_push/3.md), [*rarray\_set\_len*(3)](/rarray_set_len/3.md),  [*roy*(3)](/roy/3.md)
