radcli_ctx_get_opt_int(3)

πŸ“¦ version 2.0.1, in arch rolling

πŸ’… 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 from radcli_ctx_new() or radcli_ctx_read_config(). it's the main character of this whole operation, no cap. πŸ‘‘
  • opt β€” the option you wanna read. MUST be RADCLI_OPT_TYPE_INT in RC_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

  • 0 on success πŸŽ‰
  • -1 on 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:


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