radcli_ctx_set_opt_int(3)

radcli_ctx_set_opt_int3

Set an integer-typed configuration option.

Usage

#include <radcli/>

int radcli_ctx_set_opt_int(
    radcli_ctx   *ctx,
    radcli_opt_id opt,
    long          val
);

Overview

Parameters

ctx

a context from radcli_ctx_new().

opt

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

val

the value.

Return value

0 on success, -1 on failure (as radcli_ctx_set_opt_str()).

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