radcli_ctx_get_opt_int(3)

radcli_ctx_get_opt_int3

Read back an integer-typed configuration option.

Usage

#include <radcli/>

int radcli_ctx_get_opt_int(
    const radcli_ctx  *ctx,
    radcli_opt_id      opt,
    long              *out
);

Overview

Parameters

ctx

a context from radcli_ctx_new() or radcli_ctx_read_config().

opt

the option to read; MUST be RADCLI_OPT_TYPE_INT in RC_OPTION_TABLE (e.g. #RADCLI_OPT_RADIUS_TIMEOUT, #RADCLI_OPT_RADIUS_RETRIES).

out

set to the option's value on success; unchanged on failure.

Return value

0 on success, -1 on failure (NULL ctx or out, opt out of range, opt not RADCLI_OPT_TYPE_INT, or opt unset).

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