QB_LIST_LENGTH(3)
β¨ NAME β¨
qb_list_length β bestie, this one literally just counts how many items are in the list π
πΈ SYNOPSIS πΈ
#include <qb/qblist.h>
static int32_t qb_list_length(
struct qb_list_head *head /* the head for your list. */
);
okay so you pull in qb/qblist.h and then it's a static int32_t function called qb_list_length, and it takes exactly one thing: head. that's it. that's the whole vibe π
π¦ PARAMS π¦
headβ the head for your list. that's the entry point, the main character, the one you hand over so she can go count π
π DESCRIPTION π
ngl the original page doesn't drop any extra prose here β it goes straight into showing you the struct. so no hidden lore, bestie, just the shape of the thing π
π STRUCTURES π
struct qb_list_head {
struct next;
struct prev;
};
that's the head struct, character for character. two members: next and prev. lowkey iconic in its minimalism β¨
π RETURN VALUE π
the length of the list. that's it. no cap, it just tells you how many items are chillin' in there π―
π₯ SEE ALSO π₯
the whole friend group, fr fr β go read these too:
qb_list_empty(3)qb_list_add_tail(3)qb_list_add(3)qb_list_splice_tail(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.
and that's the whole page, bestie π«Ά this was QB_LIST_LENGTH(3) from the libqb Programmer's Manual, brought to you by the LIBQB girlies, dated 2025-09-16. mwah π slay, go count your list β¨π
π¦ 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