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 🌈

go read the whole friend group, they're all iconic fr fr πŸ’–


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