qthread_stackleft(3)

πŸ“¦ version 1.22^20251007gitcedb1fc, in fedora 43, fedora 44

✨ qthread_stackleft β€” it's giving "how much room do I have left" ✨

okay bestie, quick vibe check: this is a libqthread manual page, and today's main character is qthread_stackleft(3) πŸ’…


🌸 NAME 🌸

qthread_stackleft β€” returns the amount of space left in the thread's allocated stack

like... how many bytes are still chilling in your stack, fr fr 🫢


πŸŽ€ SYNOPSIS πŸŽ€

#include <qthread.h>

size_t
qthread_stackleft (void);

she takes no arguments. she just shows up and tells you the tea β˜•


πŸ¦‹ DESCRIPTION πŸ¦‹

so basically: this function returns the number of bytes left in the stack. that's it. that's the whole job. lowkey iconic for how simple it is πŸ’–


πŸ‘‘ RETURN VALUE πŸ‘‘

if you run this on a qthread, she returns the number of bytes left in the stack β€” accurate to a small margin (on the order of 10 bytes). so like, approximately. don't be weird about it πŸ™ˆ

otherwise? she returns 0. zero. nothing. a whole lot of no. πŸ’€


🌈 SEE ALSO 🌈

go read those too, bestie, they're all part of the same friend group 🧚


k byeeee, this page is from libqthread and it's dated APRIL 2011 β€” yeah she's an elder but she still ate πŸ’…βœ¨

πŸ“¦ where this page comes from