qt_dictionary_delete(3)
π qt_dictionary_delete β bestie edition π
okay so this is a page from libqthread, and today's main character is qt_dictionary_delete(3). she's the one who removes things. a queen of letting go. π«Ά
β¨ NAME β¨
qt_dictionary_delete β remove a key/value pair from the dictionary
πΈ SYNOPSIS πΈ
#include <qthread/dictionary.h>
void *
qt_dictionary_delete (qt_dictionary *dict,
void *key);
π DESCRIPTION π
okay so picture this: you've got a dictionary data structure called dict, right? and inside it there's a key/value pair, and you're like. bestie. this pairing has served its purpose. it's time. π
that's literally what this function does. it removes the key/value pair, identified by key, from the dictionary data structure dict. she takes the key, she finds the pair, she takes it OUT. bye boo π
β RETURN VALUES β
- if the
keywas actually present in the dictionary β you get back a pointer to the value that was associated with it. iconic. you get the goods back. π - if the key was not there β you get
NULL. no key, no value, no drama. justNULL. π
π SEE ALSO π
the whole dictionary friend group, fr fr:
qt_dictionary_create(3)qt_dictionary_destroy(3)qt_dictionary_end(3)qt_dictionary_get(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)
and that's the whole page, bestie!! this was libqthread, dated AUGUST 2012 (yes she's vintage, she's an elder, respect her π§), and you were reading qt_dictionary_delete(3). go forth and delete responsibly. no cap. πβ¨
π¦ 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