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:


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