TICKIT_RECT_BOTTOM(3)

πŸ’– TICKIT_RECT_BOTTOM(3) πŸ’–

okay bestie, welcome to the Library Functions Manual corner of the group chat ✨ we're talking about tickit_rect_bottom and tickit_rect_right, and no cap they are the smallest little cuties with the biggest job: telling you where a rectangle ends. πŸŽ€


✨ NAME ✨

tickit_rect_bottom, tickit_rect_right β€” return the bottom right corner of a rectangle πŸ¦‹

like. that's it. that's the whole vibe. they find the corner. periodt. πŸ’…


🌸 SYNOPSIS 🌸

#include <tickit.h>

int tickit_rect_bottom(const TickitRect *rect);
int tickit_rect_right(const TickitRect *rect);

Link with -ltickit.

not me reminding you to actually link the library πŸ™ˆ do it or the linker will simply not know her. fr fr.

πŸ‘‘ DESCRIPTION πŸ‘‘

tickit_rect_bottom() returns the lower extent of the rectangle β€” and here's the little plot twist, bestie: it gives you the first line past the bottom. so it's not the last line inside, it's the one after. the way that works is honestly iconic if you think about it too long 😭

tickit_rect_right() does the same thing but sideways β€” it returns the righthand extent of the rectangle, which is the first column past the righthand edge. again: past the edge, not on it. 🫢

These functions may be static inline.

so lowkey you might not even get a real symbol at link time, that's just how she is, main character energy ⭐

πŸ’œ RETURN VALUE πŸ’œ

  • tickit_rect_bottom() returns a line number as an integer. πŸ“
  • tickit_rect_right() returns a column number as an integer. πŸ“

integers. clean. simple. slay. ✨


πŸ¦‹ SEE ALSO πŸ¦‹

go read those next, bestie, it's giving ✨well-rounded education✨ iykyk


and that's the whole page!! tysm for reading, you ate πŸ’– this was TICKIT_RECT_BOTTOM(3) from the Library Functions Manual, and no date was given on this one so we're just gonna assume she's timeless πŸ‘‘ mwah, go write some rectangles πŸŽ€βœ¨