radcli_avp_add_bytes(3)

πŸ“¦ version 2.0.1, in arch rolling

🌸 NAME 🌸

okay so this is radcli_avp_add_bytes(3) from the radcli manual, and it’s here to append an attribute holding an arbitrary byte string. it’s giving foundational byte-copying energy, bestie. πŸ’…

✨ SYNOPSIS ✨

#include <radcli/>

int radcli_avp_add_bytes(
    radcli_avp_list        *list,
    const radcli_attr_def  *def,
    const void             *value,
    size_t                  len
);

πŸ’– DESCRIPTION πŸ’–

This is the primitive β€” every other radcli_avp_add_*() function is literally defined in terms of it. It’s valid for any attribute type, because the underlying representation is always length-carrying bytes. no cap. πŸ¦‹

πŸŽ€ PARAMETERS πŸŽ€

  • list β€” destination list.
  • def β€” the attribute, from radcli_dict_lookup() or a sibling.
  • value β€” the bytes to copy in; it may be NULL only if len is 0.
  • len β€” number of bytes at value.

πŸ”₯ RETURN VALUE πŸ”₯

0 on success, -1 on failure (allocation failure, or NULL list/def). that’s the whole vibe check, bestie 😭

πŸ‘‘ SEE ALSO πŸ‘‘

go read these next, same radcli cinematic universe:


xoxo bestie πŸ’– β€” this page is from radcli, dated 2026-10-10, and it’s all about radcli_avp_add_bytes(3). πŸŽ€βœ¨

πŸ“¦ where this page comes from