radcli_avp_get_bytes(3)

πŸ“¦ version 2.0.1, in arch rolling

πŸ’… radcli_avp_get_bytes(3) β€” the "gimme the raw bytes" girlie ✨

okay so this is a page from the Radius client library manual, and the star of the show is literally radcli_avp_get_bytes(3). she's that one friend who just hands you the whole thing, untouched 🫢


🌸 NAME 🌸

radcli_avp_get_bytes β€” read an attribute's value as raw bytes. no vibes, no interpretation, just the bytes bestie πŸ’–


✨ SYNOPSIS ✨

#include <radcli/>

int radcli_avp_get_bytes(
    const radcli_avp  *a,
    const void       **out,
    size_t            *len
);

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea: this one is valid for every attribute type. every single one. because the underlying representation is always length-carrying bytes β€” that's just how she's built, no cap πŸ’…

and like, the interpretation of those bytes for the integer/IPv4/date-typed attributes? it matches what radcli_avp_get_uint32()'s interpretation gives you. same energy, iykyk ✨


πŸŽ€ PARAMETERS πŸŽ€

  • a β€” the attribute. the main character of this whole operation πŸ‘‘
  • out β€” where to write a pointer to the value; it stays valid for a's lifetime. may be NULL. so like, it's optional but also don't @ me if you need it later πŸ™ˆ
  • len β€” where to write the value's length in bytes. may be NULL too. girlies love a flexible parameter πŸ’œ

🌈 RETURN VALUE 🌈

  • 0 on success β€” slay, we ate πŸŽ‰
  • -1 if a is NULL β€” yeah that's a no from her πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group, fr fr β€” go say hi to all of them:


and that's the whole page babes πŸ’–βœ¨ this lil drop is from radcli, dated 2026-10-10 β€” go forth and read those bytes, you absolute icon πŸŽ€πŸ¦‹β­

πŸ“¦ where this page comes from