rc_dict_addval(3)

rc_dict_addval3

Add value to dictionary.

Usage

#include <radcli/>

DICT_VALUE * rc_dict_addval(
    rc_handle   *rh,
    char const  *attrstr,
    char const  *namestr,
    uint32_t     value
);

Overview

A re-add identical to an already-loaded value of the same attribute+number returns that existing value rather than adding a duplicate; a re-add of the same attribute+number with a conflicting name fails, after a warning naming both definitions.

Parameters

rh

a handle to configuration.

attrstr

attribute name

namestr

name

value

attribute value

Return value

added (or already-existing, identical) value on success, NULL on failure or conflict

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