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
|
a handle to configuration. |
|---|---|
|
attribute name |
|
name |
|
attribute value |
Return value
added (or already-existing, identical) value on success, NULL on failure or conflict