QB_LOG_FACILITY2INT(3)

πŸ’– qb_log_facility2int(3) β€” the libqb Programmer's Manual glow-up πŸ’–

okay bestie, welcome to the libqb Programmer's Manual, page three of the qb_log_facility2int saga. this is the one that takes your cute little string and hands you back a number. slay. πŸŽ€


✨ NAME ✨

qb_log_facility2int β€” Convert string "auth" to equivalent number "LOG_AUTH" etc.

like. it literally does what it says on the tin. you give it "auth", it gives you the number that means LOG_AUTH. no cap. πŸ¦‹


🌸 SYNOPSIS 🌸

#include <qb/qblog.h>

int32_t qb_log_facility2int(
    const char   *fname
);

so you gotta #include <qb/qblog.h> first, obviously, and then you call it with one arg, fname, and it hands you back an int32_t. that's the whole vibe. πŸ’…


πŸ‘‘ DESCRIPTION πŸ‘‘

okay so. this is gonna be quick because β€” and i am not being dramatic β€” the description section on this page is literally empty. like, nothing. void. the manpage said "DESCRIPTION" and then simply ✨ did not elaborate ✨. iconic of it, honestly. 😭

so there's no extra lore here, bestie. what you see in NAME and SYNOPSIS is the entire story: string in, number out. no extra params, no hidden caveats listed, no warnings, no exit codes, no env vars, no files. nothing to memorise. you're free. πŸ•ŠοΈ


🫢 SEE ALSO 🫢

the full libqb friend group, no one left out, we love a complete roster:

(and yes, qb_log_facility2str(3) is right there being the reverse of this one. they're a matching set. besties, even. πŸ«‚)


Copyright (c) 2017 Red Hat, Inc.


and that's the whole page, babe. this lil gem lives in LIBQB, dated 2025-09-16, and it will forever be known as QB_LOG_FACILITY2INT(3). go forth and convert your facilities. mwah. πŸ’œπŸŽ€βœ¨

πŸ“¦ where this page comes from