rc_new(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_new β€” bestie edition πŸ’–

okay so you know how the radcli Radius client library is a whole thing? yeah. this is one of its little guys. it lives in the Radius client library manual, section 3, and it's genuinely the most low-effort slay in the whole API. no cap.


✨ NAME ✨

rc_new β€”

and that's it. that's the whole name line. the original page literally leaves the description blank, so bestie, we're not inventing one. it's giving mysterious. it's giving main character who refuses to introduce herself. πŸŽ€


🌸 SYNOPSIS 🌸

first, you gotta pull in the header:

#include <radcli/radcli.h>

then you call the girl herself:

rc_handle * rc_new(
    void
);

no arguments. none. zero. she takes void and she takes it proudly. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

rc_new initialises a new Radius Client handle. that's the entire job description. she clocks in, she makes you a shiny fresh handle, she does not elaborate further. 🫢

if you're building anything with the Radius client library, this is like. step one. the vibe check before the vibe check. you can't do the rest of the rc_* function family until you've got yourself a handle, and this is where the handle comes from. ✨


πŸŽ€ RETURN VALUE πŸŽ€

she hands you back a brand new rc_handle. 🎁

⚠️ important bestie!!! when you're done with it, you gotta free it with rc_destroy. it's not a "set it and forget it" situation, it's a "clean up after yourself" situation. no leaking, that's so not the move. 😭

🌈 SEE ALSO 🌈

the whole friend group. the entire group chat. every single one of these, fr fr:

(yes, rc_new(3) is in there linking to herself. self-love icon behavior honestly. πŸ‘‘)


and that's the page!! this one dropped on 2023-01-29, brought to you by the fine people behind radcli πŸ’– thanks for coming to my ted talk, now go rc_destroy your handles like a responsible queen. mwah. πŸ¦‹βœ¨

πŸ“¦ where this page comes from