cfg_simple_t(3)
π NAME π
cfg_simple_t β bestie, it's the data structure that holds the pointer to a user-provided variable you defined with CFG_SIMPLE_*. That's the whole job. It holds the pointer. It's giving loyal sidekick energy. π«Ά
πΈ SYNOPSIS πΈ
#include <confuse.h>
β¨ Data Fields β¨
Ok so here's the whole roster β every field is just a pointer to your variable, and each one is tagged with the CFG_SIMPLE_* type it pairs with. No cap. π
long int * numberβ a pointer to along int, forCFG_SIMPLE_INTint8_t * i8β a pointer to anint8_t, forCFG_SIMPLE_INT8int16_t * i16β a pointer to anint16_t, forCFG_SIMPLE_INT16int32_t * i32β a pointer to anint32_t, forCFG_SIMPLE_INT32int64_t * i64β a pointer to anint64_t, forCFG_SIMPLE_INT64uint8_t * u8β a pointer to auint8_t, forCFG_SIMPLE_UINT8uint16_t * u16β a pointer to auint16_t, forCFG_SIMPLE_UINT16uint32_t * u32β a pointer to auint32_t, forCFG_SIMPLE_UINT32uint64_t * u64β a pointer to auint64_t, forCFG_SIMPLE_UINT64double * fpnumberβ a pointer to adouble, forCFG_SIMPLE_FLOATcfg_bool_t * booleanβ a pointer to acfg_bool_t, forCFG_SIMPLE_BOOLchar ** stringβ a pointer to achar *, forCFG_SIMPLE_STRvoid ** ptrβ a pointer to a user value, forCFG_SIMPLE_PTR
Notice howstringischar **andptrisvoid **? Yeah bestie, double pointers. You're pointing at a pointer. It's layers. It's an onion. π§ It's also literally what the manpage says, so don't come for me. π
π¦ Detailed Description π¦
Data structure holding the pointer to a user provided variable defined with CFG_SIMPLE_*.
That's it. That's the vibe. One struct, thirteen pointer slots, each one waiting for you to hand it the address of a variable that matches its type. You pick the CFG_SIMPLE_* macro that fits your variable, you drop the pointer in the matching field, and the config machinery handles the rest. Main character behavior, honestly. β¨
π Author π
Generated automatically by Doxygen for libConfuse from the source code. π€ Not a human, not a bestie, just Doxygen doing its little automated thing and eating, fr fr.
And that's the page, babe π β it ships as part of libConfuse, Version 3.4, in the Library Functions Manual, filed under cfg_simple_t(3) because that's just where it lives. Go forth and point at your variables. ππ¦
π¦ where this page comes from
- fedora 43: libconfuse 3.4-1.fc43 Β· ISC
- fedora 43: libconfuse 3.4-1.fc43 Β· ISC
- fedora 44: libconfuse 3.4-1.fc44 Β· ISC
- fedora 44: libconfuse 3.4-1.fc44 Β· ISC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms