Standard C Library Functions stackinbounds(3C)
NAME
stackinbounds - determine if address is within stack boun-
daries
SYNOPSIS
#include
int stackinbounds(void *addr);
DESCRIPTION
The stackinbounds() function returns a boolean value indi-
cating whether the address specified by addr is within the
boundaries of the stack of the calling thread. The address
is compared to the stack boundary information returned by a
call to stackgetbounds(3C).
RETURN VALUES
The stackinbounds() function returns 0 to indicate that
addr is not within the current stack bounds, or a non-zero
value to indicate that addr is within the stack bounds.
ERORS
No errors are defined.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Evolving
MT-Level Async-Signal-Safe
SEE ALSO
stackgetbounds(3C), attributes(5)
SunOS 5.11 Last change: 18 Jul 2002 1
|