qthread_stackleft - Man Page
returns the amount of space left in the thread's allocated stack
Synopsis
#include <qthread.h>
size_t
qthread_stackleft (void);
Description
This function returns the number of bytes left in the stack.
Return Value
If run on a qthread, it returns the number of bytes left in the stack, accurate to a small margin (on the order of 10 bytes). Otherwise it returns 0.
See Also
Info
APRIL 2011 libqthread