QB_HASHTABLE_CREATE(3)

πŸ’– QB_HASHTABLE_CREATE(3) πŸ’–

okay so bestie, welcome to the libqb Programmer's Manual ✨ this one's a lil baby page but it's lowkey iconic β€” it's how you manifest a whole unsorted map out of thin air, powered by a hashtable. no cap.


🌸 NAME 🌸

qb_hashtable_create β€” create an unsorted map based on a hashtable πŸ’…

fr fr, that's the whole vibe: you want a map, the map is unsorted, and the engine under the hood is a hashtable.


✨ SYNOPSIS ✨

#include <qb/qbmap.h>

qb_map_t * qb_hashtable_create(
    size_t  max_size   /* maximum size of the hashtable*/
);

so you pull in qb/qbmap.h, and you call qb_hashtable_create with exactly one argument. that's it. that's the whole ritual πŸŽ€


πŸ¦‹ PARAMS πŸ¦‹

  • max_size β€” maximum size of the hashtable. yes literally, that's the cap. that's what it means. the hashtable has a maximum size and this is it. 🌈

πŸ’œ DESCRIPTION πŸ’œ

ngl bestie, this section is giving absolutely nothing β€” the original manpage leaves it empty, so we're leaving it empty too. no invented lore, we don't do that here πŸ™ˆ the SYNOPSIS and PARAMS said what needed to be said. periodt.


πŸ‘‘ RETURN VALUE πŸ‘‘

  • the map instance 🫢

like, you get a map back. a whole map. main character energy.

heads up: qb_map_t * is the type you're catching it in, and it's a pointer, so treat it like the precious thing it is. ✨

πŸ”₯ SEE ALSO πŸ”₯

the whole squad, bestie β€” go read these next, they're all connected:

iykyk πŸ’…


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


and that's the whole page, bestie!! πŸ₯³ this beauty shipped as part of LIBQB on 2025-09-16 β€” mwah, slay, go make some maps πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from