radcli_attr_def_oid(3)
π 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 fromradcli_dict_lookup()or a sibling. πbufβ destination buffer; may beNULLifbuflenis0. πͺbuflenβ size ofbufin 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 π¦
radcli_attr_def_name(3)radcli_attr_def_type(3)radcli_dict_lookup(3)radcli_dict_lookup_num(3)radcli_dict_lookup_oid(3)radcli_dict_lookup_value(3)
xoxo, radcli π β this iconic page is dated 2026-10-10. periodt. π
π¦ where this page comes from
- arch rolling: radcli 2.0.1-1 Β· BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms