radcli_avp_get(3)

radcli_avp_get3

Find the idx-th occurrence of an attribute in a list.

Usage

#include <radcli/>

const radcli_avp * radcli_avp_get(
    const radcli_avp_list  *list,
    const radcli_attr_def  *def,
    unsigned                idx
);

Overview

Parameters

list

the list to search.

def

the attribute to look for.

idx

0 for the first occurrence, 1 for the second, and so on.

Return value

the matching attribute, or NULL if fewer than idx+1 occurrences exist.

From radcli 2.0.1-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.