LC_KEYRING_HAS(3)
π LC_KEYRING_HAS(3) π
okay bestie, so this is a page from the Librecast Programmer's Manual β yes, the liblibrecast one β and it's about the lil function that goes digging through your keyring to see if a key is in there. it's lc_keyring_has, she's short, she's sweet, she's giving "yes or no ma'am" energy. let's get into it π«Ά
πΈ NAME πΈ
lc_keyring_has β search keyring for key π
π LIBRARY π
Librecast library (liblibrecast, -llibrecast) β¨
π SYNOPSIS π
#include <librecast/key.h>
int lc_keyring_has(lc_keyring_t *keyring, uint8_t *key);
Compile and link with -llibrecast. no cap, that flag is not optional π
π¦ DESCRIPTION π¦
Searches keyring for key. that's it. that's the whole vibe. it takes your keyring and your key and it goes rummaging, like you digging through your bag for your lip gloss, except it's actually organized and finds things π
β RETURN VALUE β
okay this is the part where you gotta pay attention because the numbers are doing a little bit of a troll move, and it's iconic but also unhinged, so listen:
lc_keyring_has()returns-1if key is found on keyring π- or
0if it is not found π
yes bestie. negative one means YES. zero means NO. it's giving "the call is coming from inside the house" logic but we love her anyway and we respect her choices. just don't assume it works like a normal boolean, fr fr π
π ERRORS π
None. not a single one. she's unproblematic, she's low maintenance, she has never once caused drama. periodt β¨
π₯ SEE ALSO π₯
lc_keyring_init(3)lc_keyring_free(3)lc_keyring_has(3)lc_channel_filter_set(3)lc_channel_new(3)lc_keypair_new(3)
and that's the whole page, my love π this little cutie comes to you from LIBRECAST, dated 2025-04-02, filed under LC_KEYRING_HAS(3) β go forth and check your keys, and remember: -1 means found. stay slay. bye ππ
π¦ where this page comes from
- nixos 26.05: librecast 0.11.2
- nixpkgs unstable: librecast 0.11.2
- ubuntu resolute: liblibrecast-dev 0.11.2-2 Β· GPL-2.0-only OR GPL-3.0-only
- ubuntu stonking: liblibrecast-dev 0.11.2-2build1 Β· GPL-2.0-only OR GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms