[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
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());
}
See Also:
alloca()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson