RKGETKANJI(3)

✨ NAME ✨

RkGetKanji β€” bestie, this one grabs you the current candidate for the current clause πŸ’…

It's a Library Functions Manual situation, page RKGETKANJI(3), and she's here to hand you your kanji. πŸŽ€


🌸 SYNOPSIS 🌸

#include <canna/RK.h>
int RkGetkanji(cxnum, kanji, maxkanji)
int cxnum;
unsigned char *kanji;
int maxkanji;
ok so heads up: the NAME says RkGetKanji and the SYNOPSIS says RkGetkanji β€” that lowercase k is not a typo on my part, that's literally how the page spells it. Copy-paste with care, queen. πŸ™ˆ

πŸ¦‹ DESCRIPTION πŸ¦‹

RkGetKanji sets kanji in the area kanji. That's it, that's the whole assignment, she's a one-job icon. πŸ‘‘

And here's the lil catch you need to know about: the resulting character string is truncated when its byte length exceeds maxkanji -1. So that -1? That's your actual usable room. It's giving "reserve one byte for the girls." πŸ“


πŸ’– RETURN VALUE πŸ’–

  • On success she returns the length of the current candidate. Slay. ✨
  • She returns -1, without doing anything, if it's been run in a nonconversion mode context. So like, wrong vibe, wrong room, she's simply not participating. πŸ’€

that's the whole page bestie, no cap β€” go forth and fetch your kanji 🌈

signing off from the footer, RKGETKANJI(3), library functions manual, no version date on this one, mwah πŸ’œπŸ«Ά

πŸ“¦ where this page comes from