RKPREV(3)

πŸ’– RKPREV(3) πŸ’–

okay bestie, welcome to the Library Functions Manual corner of the internet, where we talk about RkPrev β€” the function that sets the previous candidate as the current candidate. she's giving time travel but make it candidates. πŸ¦‹


✨ NAME ✨

RkPrev β€” set the previous candidate as the current candidate πŸ‘‘

🌸 SYNOPSIS 🌸

#include <canna/RK.h>
int RkPrev(cxnum)
int cxnum;

πŸ’… DESCRIPTION πŸ’…

so here's the tea, bestie: RkPrev sets the previous candidate as the current candidate. iconic behaviour, no notes. πŸŽ€

but wait β€” there's a plot twist. if the current candidate is already the first candidate, she doesn't just give up and cry about it. nope. she wraps all the way around and moves to the last candidate. circular queen behaviour fr fr. πŸ”₯

⭐ RETURN VALUE ⭐

if it goes well, this function moves the current candidate in the context and hands you back the current candidate number after the move. you get receipts, periodt. πŸ’–

and if it's been run in a nonconversion mode context? she returns 0 and does absolutely nothing. no moving, no vibes, just a polite little 0. 😭 don't take it personally, it's just not that kind of context.


🌈 lowkey reminder: 0 here isn't a candidate number, it's the "i didn't do anything" signal. context matters, iykyk. πŸ™ˆ

and that's the whole page, bestie β€” signed off from the Library Functions Manual, RKPREV(3), in all her glory. go forth and move those candidates backwards. πŸ’œβœ¨πŸ«Ά

πŸ“¦ where this page comes from