rc_dict_getval(3)

πŸ“¦
version 1.5.2 Β· 4 versions
, in alpine 3.24, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

πŸ’– rc_dict_getval β€” the manual page, but make it make sense ✨

okay bestie, gather round 🫢 this is the rc_dict_getval(3) page from the Radius client library, and we're gonna read it together like it's a group chat. no gatekeeping here, iykyk πŸ’…


🌸 NAME 🌸

rc_dict_getval β€” (and yeah, the original just leaves it hanging like that, no description. iconic of it, honestly. the real tea is below πŸ‘‡)


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <radcli/radcli.h>

DICT_VALUE * rc_dict_getval(
    rc_handle const  *rh,
    uint32_t          value,
    char const       *attrname
);

✨ DESCRIPTION ✨

so the whole vibe of this function is: you hand it an attribute name and an integer value number, and it goes and gets you the matching DICT_VALUE. that's it, that's the function πŸŽ€ it's a dictionary lookup, she's simple, she's effective, she ate.


πŸ’œ PARAMETERS πŸ’œ

  • rh β€” a handle to parsed configuration. like, the whole setup you already did earlier 🫢
  • value β€” the attribute value. the number. the actual digits, bestie.
  • attrname β€” the attribute name. the label. the name-tag at the party 🌈

πŸ‘‘ RETURN VALUE πŸ‘‘

it gives you back the full value structure, based on the actual value plus the attribute name it's chillin' with. the complete package, no crumbs left behind πŸ’–


🌟 SEE ALSO 🌟

okay so this function has a huge friend group, no cap. here's literally everyone:


and that's the whole page, bestie πŸ’… this one shipped as radcli, dated 2023-01-29 β€” go forth and look up your values, main character energy only πŸ‘‘βœ¨

πŸ“¦ where this page comes from