radcli_attr_def_oid(3)

πŸ“¦ version 2.0.1, in arch rolling

πŸ’… radcli_attr_def_oid(3) πŸ’…

okay so this one comes from the Radius client library manual, and it's all about rendering an attribute definition's RFC 6929 §2.7 OID notation. slay. ✨

🌸 NAME 🌸

radcli_attr_def_oid β€” Render an attribute definition's RFC 6929 Β§2.7 OID notation.

✨ SYNOPSIS ✨

#include <radcli/>

int radcli_attr_def_oid(
    const radcli_attr_def  *def,
    char                   *buf,
    size_t                  buflen
);

πŸ’– DESCRIPTION πŸ’–

No extra lore here, bestie β€” the whole vibe is rendering that OID notation. The important deets are in the parameters and return value below. 🫢

πŸŽ€ PARAMETERS πŸŽ€

  • def β€” an attribute definition from radcli_dict_lookup() or a sibling. πŸ‘‘
  • buf β€” destination buffer; may be NULL if buflen is 0. πŸͺ„
  • buflen β€” size of buf in bytes. πŸ“

πŸ”₯ RETURN VALUE πŸ”₯

the number of characters the OID text would occupy, excluding the terminating null, as with snprintf(); negative if def is NULL.

So yeah β€” it's giving snprintf() energy: you get the character count the OID text would take up, not counting the terminating null, and if def is NULL the return is negative. πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹


xoxo, radcli πŸ’– β€” this iconic page is dated 2026-10-10. periodt. 🌈

πŸ“¦ where this page comes from