QB_MAP_GET(3)

πŸ’– QB_MAP_GET(3) πŸ’–

okay bestie, welcome to the libqb Programmer's Manual ✨ you're looking at qb_map_get, and no cap, it's the lil function that goes "hey, you got a key? lemme go get the value for u" 🫢


🌸 NAME 🌸

qb_map_get β€” gets the value corresponding to the given key πŸ’…

like, that's it. that's the whole job. you hand it a key, it hands you back the value. iconic behavior honestly πŸ‘‘


✨ SYNOPSIS ✨

#include <qb/qbmap.h>

void * qb_map_get(
    qb_map_t     *map,
    const char   *key
);

so you pull in qb/qbmap.h, and then you call it with a map (a qb_map_t *) and a key (a const char *), and it gives you back a void *. periodt 🌈


πŸ¦‹ DESCRIPTION πŸ¦‹

ngl, this section of the page is just… empty. the original devs left it blank 😭 not me noticing that. so there's no extra lore here β€” the NAME line above is literally carrying the entire description on its back. main character energy fr fr πŸ’€


πŸŽ€ RETURN VALUE πŸŽ€

  • NULL β€” if the key does not exist πŸ™ˆ (it's not there, babe, nothing to return)
  • a pointer to the value β€” when it is there, you get the pointer πŸ’–
heads up bestie: it's a void *, so you're the one who decides what it actually points at. iykyk ✨

πŸ”₯ SEE ALSO πŸ”₯

go read these next, they're the rest of the squad:


Copyright (C) 2010-2020 Red Hat, Inc.


and that's the whole page, bestie 🧚 this was QB_MAP_GET(3) from the libqb Programmer's Manual, with the LIBQB source stamp dated 2025-09-16 and the footer id QB_MAP_GET(3) πŸŒΈπŸ’– go get those values, you absolute legend ⭐

πŸ“¦ where this page comes from