radcli_avp_get_uint32(3)

πŸ“¦ version 2.0.1, in arch rolling

πŸ’– NAME πŸ’–

okay so bestie, this is radcli_avp_get_uint32(3) from the Radius client library β€” manual name folded in near the top, as promised 🫢. It does one iconic thing: Read an attribute's value as an integer/IPv4-address/date. That's the whole vibe. periodt. ✨


✨ SYNOPSIS ✨

here's the exact signature, no cap:

#include <radcli/>

int radcli_avp_get_uint32(
    const radcli_avp  *a,
    uint32_t          *out
);

🌸 DESCRIPTION 🌸

There's literally no extra prose in the DESCRIPTION section β€” the actual tea is all in PARAMETERS below. Not me leaving it empty and still making it cute πŸ™ˆπŸ’….


πŸŽ€ PARAMETERS πŸŽ€

  • a β€” the attribute, bestie. radcli_avp_def(a) must be RADCLI_TYPE_INTEGER, RADCLI_TYPE_IPADDR, or RADCLI_TYPE_DATE. An IPv4 address is returned in host byte order. yes, host byte order β€” write that down πŸ“.
  • out β€” where to write the value. It may be NULL to just check validity. lowkey useful for a vibe check βœ….

πŸ”₯ RETURN VALUE πŸ”₯

  • 0 β€” success, we love to see it πŸ‘‘.
  • -1 β€” a's type does not match. That's the whole return contract, fr fr πŸ’€.

πŸ¦‹ SEE ALSO πŸ¦‹

go read these too, iykyk πŸ’œ:


xoxo, this page is from radcli, dated 2026-10-10 β€” catch you in the next manpage πŸ’…πŸ«ΆπŸŒΈ

πŸ“¦ where this page comes from