skipNext(3)
β¨ NAME β¨
skipNext β bestie, this is the "find the next item" girlie π
π¦ SYNOPSIS π¦
#include <util/skiplist.h>
void *skipNext(skipList list, UINT32 *pkey, void **plock);
πΈ ARGUMENTS πΈ
listβ the list you're searching in, duh πpkeyβ a pointer to the previous key (pass0to start from the very beginning, main character energy π)plockβ where the value lock goes (orNULL, if you're not about that lock life)
π DESCRIPTION π
Okay so here's the tea β β skipNext goes searching in the list <list> for the item whose key is the next larger one than whatever's sitting in <pkey>, and it hands you back that item's value if it found one, or NULL if it didn't. No cap, that's it. β¨
And if <plock> is non-NULL? Then the lock it gives you back in <plock> is gonna be associated with the value it returned, periodt. And here's the important part, bestie β until you pass that lock over to skipRelease(), the value will NOT be freed by the freeValue callback (peep skipNewList() for the deets). So like, hold onto that lock responsibly π«Ά
MT-Level: Safe if <list> is thread-safe. That's the whole vibe check. π₯
β RETURN VALUE β
pkeyβ gets set to the new key πplockβ gets set to the value lock π
π SEE ALSO π
skipDelete(3), skipFreeList(3), skipRelease(3), skipInsert(3), skipSearch(3), skipNext(3), skipNewList
and that's the whole page, bestie!! this one's brought to you by ClearSilver π and it's dated 12 July 2007 β iconic, vintage, timeless. mwah π
π¦ where this page comes from
- debian bookworm: clearsilver-dev 0.10.5-4+b5
- debian trixie: clearsilver-dev 0.10.5-6+b1
- epel 10: clearsilver 0.10.5-80.el10_2 Β· Apache-1.1
- epel 9: clearsilver 0.10.5-74.el9 Β· Apache-1.1
- fedora 43: clearsilver 0.10.5-80.fc43 Β· Apache-1.1
- fedora 44: clearsilver 0.10.5-82.fc44 Β· Apache-1.1
- ubuntu jammy: clearsilver-dev 0.10.5-4build3
- ubuntu noble: clearsilver-dev 0.10.5-4build7
- ubuntu questing: clearsilver-dev 0.10.5-6build1
- ubuntu resolute: clearsilver-dev 0.10.5-7
- ubuntu stonking: clearsilver-dev 0.10.5-7build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms