radcli_avp_get_by_num(3)

πŸ“¦ version 2.0.1, in arch rolling

πŸ’… radcli_avp_get_by_num(3) β€” like, the vintage lookup era

okay so bestie, this is a page from the Radius client library (yes, the radcli one πŸ’–) and it's about finding an attribute in a list by its old-school numeric ID β€” the legacy way. She's iconic, she's a little retro, and she's here to help you grab the idx-th match. πŸŽ€


✨ NAME ✨

radcli_avp_get_by_num β€” look up the idx-th occurrence of an attribute by legacy numeric ID. slay, that's the whole gig πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <radcli/>

const radcli_avp * radcli_avp_get_by_num(
    const radcli_avp_list  *list,
    const radcli_ctx       *ctx,
    uint32_t                attrid,
    uint32_t                vendor,
    unsigned                idx
);

copy that exactly, bestie, it's not a vibe you can freestyle 🌸


🌈 DESCRIPTION 🌈

πŸ“ PARAMETERS πŸ“

  • list β€” the list to search. yes, you have to tell her where to look, she's not psychic 😭
  • ctx β€” a context with a dictionary loaded. no dictionary, no lookup, that's the whole deal πŸ’€
  • attrid β€” the attribute ID (a PW_* constant, or a vendor type ID when vendor is non-zero). so like, are we searching standard or vendor territory? this param is the main character πŸ‘‘
  • vendor β€” the vendor PEN, or 0 for a standard attribute. zero means "just a regular attribute bestie", a PEN means we're doing the vendor thing 🧚
  • idx β€” 0 for the first occurrence, 1 for the second, and so on. yes, it starts at zero. she's index-pilled 🫢

πŸ’œ RETURN VALUE πŸ’œ

the matching attribute, or NULL if no such attribute is defined, or fewer than idx+1 occurrences exist in list.

so like… if you ask for the third one and there's only two? NULL. πŸ™ˆ if the attribute straight up doesn't exist? also NULL. it's giving "no notes", it's giving "handle it yourself". πŸ”₯


⭐ SEE ALSO ⭐

the whole by-num family, all matching, all gorgeous, all here for you πŸŽ€


ngl bestie, keep the vendor param straight in your head β€” 0 is standard, non-zero is a vendor PEN. mess that up and you'll get NULL and a whole lot of confusion 😭

okay that's the page!! πŸ’– this beauty is radcli, dated 2026-10-10, and the manual page is named radcli_avp_get_by_num(3) β€” periodt, go forth and look up those attributes, you absolute legend πŸŒŸπŸ‘‘πŸ¦‹πŸ’…

πŸ“¦ where this page comes from