QB_LIST_IS_LAST(3)
π NAME π
qb_list_is_last β the lil vibe check that tells you if a list entry is literally the last one hanging off the list head. π
β¨ SYNOPSIS β¨
#include <qb/qblist.h>
static int qb_list_is_last(
const struct qb_list_head *list, /* the entry to test */
const struct qb_list_head *head /* the head of the list */
);
π«Ά PARAMS π«Ά
listβ bestie, this is the entry you're testing. the main character in question πheadβ and this is the head of the list, the whole squad's home base πΈ
π DESCRIPTION π
okay so real talk, there's nothing extra written here in the original, and i'm not about to invent lore. the function does exactly what the name says and the rest is iykyk πβ¨
π¦ STRUCTURES π¦
struct qb_list_head {
struct next;
struct prev;
};
no cap, that's the struct verbatim β next and prev, just like that π
β RETURN VALUE β
boolean true/false β so like, true or false, that's the whole tea π
π SEE ALSO π
qb_list_empty(3)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_del(3)
go read the whole friend group, they're all iconic fr fr π
π COPYRIGHT π
Copyright (C) 2010-2020 Red Hat, Inc.
and that's the whole page bestie!! this was QB_LIST_IS_LAST(3) from the libqb Programmer's Manual, libqb version stamped 2025-09-16 β slay, periodt, go test your lists π
β¨π¦
π¦ 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