radcli_ctx_get_opt_int(3)
π radcli_ctx_get_opt_int β read back an integer-typed configuration option
okay so bestie, we're deep in the Radius client library docs rn and this one's a lil function that goes and fetches a config value for you. it's an int. it's giving "just read the number back" energy. slay. β¨
πΈ NAME
radcli_ctx_get_opt_int β Read back an integer-typed configuration option.
like, you set it earlier, and now you want it back. we love a return trip. π«Ά
β¨ SYNOPSIS
#include <radcli/>
int radcli_ctx_get_opt_int(
const radcli_ctx *ctx,
radcli_opt_id opt,
long *out
);
π¦ DESCRIPTION
ngl the original page leaves this section completely empty β literally no prose, no lore, nothing. the whole personality lives in PARAMETERS and RETURN VALUE, so let's just go straight there, mwah. π
π PARAMETERS
ctxβ a context fromradcli_ctx_new()orradcli_ctx_read_config(). it's the main character of this whole operation, no cap. πoptβ the option you wanna read. MUST beRADCLI_OPT_TYPE_INTinRC_OPTION_TABLE(e.g.#RADCLI_OPT_RADIUS_TIMEOUT,#RADCLI_OPT_RADIUS_RETRIES). so like, if you come in here with a string option it's not gonna be the vibe check you wanted. πoutβ set to the option's value on success; unchanged on failure. so if it flops, your pointer stays exactly as it was. it's giving "no notes, no edits". π
β RETURN VALUE
0on success π-1on failure π
and the failure squad is, in order, bestie: NULL ctx or out, opt out of range, opt not RADCLI_OPT_TYPE_INT, or opt unset. that's five whole reasons to get a -1, so don't take it personally if it happens. π
π SEE ALSO
the whole friend group, fr fr β go say hi:
radcli_ctx_apply(3)radcli_ctx_free(3)radcli_ctx_get_opt_str(3)radcli_ctx_new(3)radcli_ctx_read_config(3)radcli_ctx_read_dictionary(3)radcli_ctx_read_dictionary_from_buffer(3)radcli_ctx_set_opt_int(3)radcli_ctx_set_opt_str(3)radcli_ctx_set_secret(3)radcli_ctx_set_tls_psk(3)
okay that's the whole page, you ate that ngl π this iconic lil number comes to you courtesy of radcli, dated 2026-10-10 β see you in the next manpage, bestie, mwah ππ§
π¦ where this page comes from
- arch rolling: radcli 2.0.1-1 Β· BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms