radcli_ctx_...from_buffer(3)

πŸ“¦ version 2.0.1, in arch rolling

πŸ’– radcli_ctx_read_dictionary_from_buffer(3) πŸ’–

okay so bestie, you've landed on the Radius client library page titled radcli_ctx_...from_buffer(3) β€” and no cap, this little helper is lowkey iconic. It's giving "dictionary text already in memory, let's go" energy. ✨

🌸 NAME 🌸

radcli_ctx_read_dictionary_from_buffer β€” load an additional attribute dictionary from an in-memory buffer. πŸ§ πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <radcli/>

int radcli_ctx_read_dictionary_from_buffer(
    radcli_ctx  *ctx,
    const char  *buf,
    size_t       size
);

πŸŽ€ DESCRIPTION πŸŽ€

This is the from-buffer counterpart to radcli_ctx_read_dictionary() β€” for a caller that already has dictionary text in memory rather than in a file (e.g. a small, program-defined supplemental dictionary). The way that it was added so a radcli2.h-only caller is not forced to reach into radcli.h's rc_read_dictionary_from_buffer() for this one operation? Obsessed. πŸ’–

πŸ’œ PARAMETERS πŸ’œ

  • ctx β€” a context from radcli_ctx_new() or radcli_ctx_read_config().
  • buf β€” the dictionary text.
  • size β€” buf's length in bytes.

πŸ”₯ RETURN VALUE πŸ”₯

  • 0 on success. slay. βœ…
  • -1 on failure β€” that's a parse error, including a conflicting redefinition of an already-loaded attribute. πŸ˜­πŸ’€

🫢 SEE ALSO 🫢

go give these a vibe check too, bestie:


xoxo, ur fav man page πŸ’… β€” source/version: radcli, date: 2026-10-10, and yes it's the radcli_ctx_...from_buffer(3) page. periodt. 🌈

πŸ“¦ where this page comes from