RKNEXT(3)

✨ RKNEXT(3) ✨

okay so bestie, welcome to the RkNext page πŸ’– this one lives in the Library Functions Manual and it's literally the tiniest lil glow-up function in the whole candidate roster. no cap.


πŸŽ€ NAME πŸŽ€

RkNext β€” set the next candidate as the current candidate πŸ¦‹


🌸 SYNOPSIS 🌸

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

she's giving old-school K&R energy and we're obsessed πŸ’…


🌈 DESCRIPTION 🌈

okay so here's the vibe: RkNext sets the next candidate as the current candidate ✨ that's it, that's the whole job, main character behavior fr fr.

and then β€” plot twist β€” if the current candidate is already the last candidate? she doesn't just stop. she moves to the first candidate πŸ” so it wraps around. a lil circular moment. iconic.


πŸ’« RETURN VALUE πŸ’«

if it works, this function moves the current candidate in the context and returns the current candidate number after the move πŸ‘‘ like, the new number, post-glow-up.

but bestie, listen πŸ‘€ it returns 0 β€” without doing anything β€” if it's been run in a nonconversion mode context. so like, nothing happens, zero, nada, and it just hands you a 0 πŸ™ˆ don't @ me, that's just the deal.


quick reminder: wrap-around is real. last candidate ➑️ first candidate. no error, no drama, just vibes πŸ’€

and that's the whole page, bestie!! 🫢 the footer's just echoing her name back β€” RKNEXT(3) β€” with no source, version or date attached, so consider this your cute lil sign-off: RKNEXT(3), that's a wrap πŸ’–πŸŽ€βœ¨

πŸ“¦ where this page comes from