RKRESIZE(3)

πŸ’– RKRESIZE(3) β€” Library Functions Manual πŸ’–

okay bestie, so this one lives in the Library Functions Manual and it's called RkResize β€” yes that's the whole name, we're not being mysterious about it ✨


🌸 NAME 🌸

RkResize β€” changes the reading length of the current clause to len bytes. that's it, that's the job, and she does it flawlessly πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <canna/RK.h>
int RkResize(cxnum, len)
int cxnum;
int len;

like, she takes two ints and she wants the header. standard. no notes πŸŽ€


✨ DESCRIPTION ✨

So here's the tea β˜• RkResize takes the reading length of the current clause and sets it to len bytes, and then it reconverts the right part of that current clause. she's not just changing a number, she's redoing the work downstream of it. main character energy fr fr πŸ‘‘

IMPORTANT: the value of len has to be adjusted to character boundaries in the EUC code. do not just vibe with an arbitrary byte count, she will not be okay with that πŸ’€

Now, when the reconversion happens: the analysis result of the reconverted clause is destroyed β€” because, hello, you changed the reading length, the old analysis doesn't apply anymore 😭 that's just how it is.

But the good news? The analysis result of any other clause does not change. untouched. protected. thriving 🌈

And the current clause itself doesn't change either β€” we're resizing, not swapping. periodt πŸ’œ


🫢 RETURN VALUE 🫢

She returns the number of clauses after the change. that's your little receipt 🧾✨


so yeah β€” that's RkResize(3) from the Library Functions Manual. the footer of this page is just RKRESIZE(3) and honestly it gave us no version and no date, so we're matching that energy: no date, no version, just the page name and a whole lot of love πŸ’– bye bestie, go adjust those EUC character boundaries πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from