rc_dict_addattr(3)

πŸ“¦
version 1.5.2 Β· 2 versions
  • 1.5.2 Β· alpine 3.24, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0 (latest)
  • 2.0.1 Β· arch rolling
, in alpine 3.24, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

πŸ’– rc_dict_addattr β€” bestie edition πŸ’–

okay so you're here for rc_dict_addattr(3) from the radcli Radius client library, and honestly? she's a short one. a lil baby function. but she's important, so let's get into it ✨


✨ NAME ✨

rc_dict_addattr β€” literally just: add an attribute to the dictionary. that's it. that's the whole job. πŸ’…


🌸 SYNOPSIS 🌸

#include <radcli/radcli.h>

DICT_ATTR * rc_dict_addattr(
    rc_handle   *rh,
    char const  *namestr,
    uint32_t     value,
    int          type,
    uint32_t     vendorspec
);

five arguments, no cap. let's break her down 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

Add attribute to dictionary. πŸŽ€

no no wait β€” hear me out β€” she does not check if such attribute already exists. like, at all. zero vibe check. if you add the same one twice, she will simply let you. that's a you problem, bestie, not a her problem 😭

so yeah: she adds. she does not verify. iconic behavior, slightly chaotic energy. plan accordingly πŸ’€


πŸ‘‘ PARAMETERS πŸ‘‘

  • rh β€” a handle to configuration. your whole setup lives in here πŸ’œ
  • namestr β€” attribute name. the label, the name tag, the ✨identity✨
  • value β€” attribute value. the number she's carrying
  • type β€” attribute type. what kind of thing she is
  • vendorspec β€” vendorspec. yes that's the whole description. she contains multitudes, iykyk 🌈

⭐ RETURN VALUE ⭐

  • the added attr on success πŸŽ‰ she ate, she's giving main character energy, you get your DICT_ATTR *
  • NULL on failure πŸ’€ not her finest moment, go check your inputs

🧚 SEE ALSO 🧚

okay so the whole radcli fam is here, and honestly the guest list is stacked β€” like a group chat that got way too big but everyone's still kinda lovely 🌸


and that's the whole page, bestie πŸ’– this one came from the radcli crew and it's dated 2023-01-29 β€” go forth and add your attributes (and maybe check for dupes yourself, since she won't πŸ™ˆ) πŸŽ€πŸ¦‹βœ¨

πŸ“¦ where this page comes from