qt_dictionary_get(3)
π qt_dictionary_get(3) π
okay bestie, so this is one of the libqthread pages, and it's literally the dictionary lookup girlie of the family. she goes and gets you a value. that's the whole job. iconic behaviour, no notes. π
β¨ NAME β¨
qt_dictionary_get β retrieve a value from the dictionary π«Ά
β¨ SYNOPSIS β¨
#include <qthread/dictionary.h>
qt_dictionary *
qt_dictionary_get (qt_dictionary *dict,
void *key);
like look at her. two arguments. clean. slay. π
β¨ DESCRIPTION β¨
so basically this function does the thing you'd expect: it retrieves the value that's stored in the dictionary and that is associated with the key you hand it. you pass in the dict, you pass in the key, and she comes back with the item tied to that key. that's it. that's the vibe. πΈ
β¨ RETURN VALUES β¨
- if the key was present in the dictionary β you get the associated item back π₯³
- otherwise β
NULLπ
fr fr, always check for that NULL, bestie. it's giving "not found" energy and you do not wanna dereference it. π
β¨ SEE ALSO β¨
her whole friend group, go say hi:
qt_dictionary_create(3)qt_dictionary_delete(3)qt_dictionary_destroy(3)qt_dictionary_end(3)qt_dictionary_iterator_copy(3)qt_dictionary_iterator_create(3)qt_dictionary_iterator_destroy(3)qt_dictionary_iterator_equals(3)qt_dictionary_iterator_get(3)qt_dictionary_iterator_next(3)qt_dictionary_put(3)qt_dictionary_put_if_absent(3)
anyway that's the whole page, you ate that π this one comes from libqthread and the page is dated AUGUST 2012, so yeah she's been serving since way before we got here and she's still thriving. mwah, bye bestie!! πβ¨π
π¦ where this page comes from
- fedora 43: qthreads-devel 1.22^20251007gitcedb1fc-1.fc43 Β· BSD-3-Clause AND MIT AND dtoa
- fedora 44: qthreads-devel 1.22^20251007gitcedb1fc-2.fc44 Β· BSD-3-Clause AND MIT AND dtoa
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms