getsl(3C)
_________________________________________________________________
getsl $builtin function
Return the current stack limit pointer.
_________________________________________________________________
Calling Sequence
#include <dglib.h>
short int *getsl(), *curwsl;
curwsl = getsl();
(or)
$builtin short *getsl();
short int *curwsl;
curwsl = getsl();
where curwsl is the current wide stack limit.
Description
The getsl function retrieves the value of the current wide stack
limit (WSL). The first version noted above uses a function call.
The second might generate smaller or faster code, but might not
run under other C compilers.
Returns
The getsl function returns a pointer to the value.
Related Functions
See also the getsb and getsp functions.
Example
/* Program test for the getsl() function */
#include <stdio.h>
#include <dglib.h>
short int *curwsl, *getsl();
main() {
printf("Value at WSL = %o.\n", curwsl = getsl());
}
DG/UX 4.00 Page 1
Licensed material--property of copyright holder(s)
getsl(3C)
A call to the program test generates the output
Value at WSL = 16001743672.
(This value will vary.)
DG/UX 4.00 Page 2
Licensed material--property of copyright holder(s)