TICKIT_REN...R_GET_SIZE(3)

πŸ’– tickit_renderbuffer_get_size β€” the vibe check for your render buffer πŸ’–

okay bestie, so this is a page from the Library Functions Manual β€” it's tickit_renderbuffer_get_size(3) β€” and it's literally the shortest lil glow-up you'll ever read. no cap. let's get into it ✨


🌸 NAME 🌸

tickit_renderbuffer_get_size β€” return the size of a render buffer πŸŽ€

like... it tells you how big your render buffer's content area is. that's it. that's the whole job. she's simple, she's efficient, she ate πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <tickit.h>

void tickit_renderbuffer_get_size(const TickitRenderBuffer *rb, int *lines, int *cols);

Link with -ltickit.

yes bestie you literally have to link with -ltickit or none of this works, don't skip it πŸ™ˆ

✨ DESCRIPTION ✨

so tickit_renderbuffer_get_size() sets the integers pointed to by lines and cols β€” but only if they're not NULL β€” to the size of the render buffer's content area 🌈

that's the whole thing. lines gets the line count, cols gets the column count. pass NULL for whichever one you don't care about and she'll just... not touch it. respectful queen behavior fr fr πŸ‘‘


πŸ’œ RETURN VALUE πŸ’œ

tickit_renderbuffer_get_size() returns no value.

not zero, not a status code β€” literally nothing. it's a void function. the info comes out through the pointers you handed her. that's the deal 🫢


🌟 SEE ALSO 🌟


and that's the page, bestie!! πŸŽ€ shoutout to the Library Functions Manual for hosting, and to TICKIT_REN...R_GET_SIZE(3) for being the main character of her own lil manpage. go forth and check your buffer sizes, iykyk πŸ’–βœ¨πŸ¦‹πŸŒΈπŸ’