rc_dict_addattr(3)

rc_dict_addattr3

Add attribute to dictionary.

Usage

#include <radcli/>

DICT_ATTR * rc_dict_addattr(
    rc_handle   *rh,
    char const  *namestr,
    uint32_t     value,
    int          type,
    uint32_t     vendorspec
);

Overview

A re-add identical to an already-loaded attribute of the same name returns that existing attribute rather than adding a duplicate; a re-add of the same name with a conflicting definition (different id/vendor/type) fails, after a warning naming both definitions.

Parameters

rh

a handle to configuration.

namestr

attribute name

value

attribute value

type

attribute type

vendorspec

vendorspec

Return value

added (or already-existing, identical) attr 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.