QB_LIST_EMPTY(3)
π QB_LIST_EMPTY β bestie's guide to vibes-checking a list π
okay so this is a page from the libqb Programmer's Manual, and today's main character is qb_list_empty β a quick little test that tells you if a list is empty, as in: is it pointing to itself? πͺβ¨
β¨ NAME β¨
qb_list_empty β a quick test to see if the list is empty (pointing to it's self). π
πΈ SYNOPSIS πΈ
#include <qb/qblist.h>
static int32_t qb_list_empty(
const struct qb_list_head *head /* pointer to the list head */
);
π PARAMS π
headβ pointer to the list head. that's the whole assignment bestie, just hand her the pointer π«Ά
π¦ DESCRIPTION π¦
so likeβ¦ there is literally nothing here. the DESCRIPTION section is empty, no cap. it's giving "the function name already told you everything" energy π the section exists, it's just out here living its minimalist life. iconic of it honestly π
β STRUCTURES β
the struct in question, look at her:
struct qb_list_head {
struct next;
struct prev;
};
π RETURN VALUE π
boolean true/false π― like, true or false, that's the whole answer sheet.
π SEE ALSO π
the whole squad, go read these too fr fr:
qb_list_add_tail(3)qb_list_add(3)qb_list_splice_tail(3)qb_list_length(3)qb_list_replace(3)qb_list_init(3)qb_list_splice(3)qb_list_is_last(3)qb_list_del(3)
π COPYRIGHT π
Copyright (C) 2010-2020 Red Hat, Inc.
lowkey a whole legal moment but we respect it π«‘
okay bestie that's the whole page!! mwah π this one shipped as part of libqb and the date on it is 2025-09-16 β go forth and check ur lists, they'll never catch u slipping β¨ππ¦
π¦ where this page comes from
- fedora 44: libqb-devel 2.0.9-2.fc44 Β· LGPL-2.1-or-later
- fedora 44: libqb-devel 2.0.9-2.fc44 Β· LGPL-2.1-or-later
- ubuntu resolute: libqb-dev 2.0.9-1ubuntu1 Β· LGPL-2.1-or-later
- ubuntu stonking: libqb-dev 2.0.9-1ubuntu1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms