stackavail() Return Size of Available Stack Memory
#include <malloc.h> Required for declarations only
unsigned int stackavail(void);
stackavail() returns the approximate number of bytes on the stack
available for allocation. They can be allocated by using alloca().
Returns: Approximate number of bytes available on the stack.
-------------------------------- Example ---------------------------------
The following statement reports the approximate number of bytes
available for allocation on the stack:
#include <malloc.h>
#include <stdio.h> /* for printf */
main()
{
printf("%u bytes of stack space available\n",
stackavail());
}
Seealso:
This page last updated on Fri Nov 30 10:48:32 MSK 2001
Copyright © 1992-2001, Vitaly Filatov, Moscow, Russia
Webmaster