getfp(3C)
_________________________________________________________________
getfp $builtin function
Return the current frame pointer of theparent's environment.
_________________________________________________________________
Calling Sequence
#include <dglib.h>
int *getfp(), *curfp;
curfp = getfp();
(or)
$builtin int *getfp();
short int *curfp;
curfp = getfp();
Description
The getfp function returns the frame pointer of the environment
of the parent process. The first version of the calling sequence
noted above uses a function call. The second might generate
smaller or faster code, but may not run under other C compilers.
Returns
The getfp function returns a frame pointer.
Related Functions
See also the getsb, getsl, and getsp functions.
Example
/* Program test for the getfp() function */
#include <dglib.h>
int *getfp(), *curfp;
main() {
printf("My frame pointer = %o.\n", curfp = getfp());
}
A call to the program test generates the output
DG/UX 4.00 Page 1
Licensed material--property of copyright holder(s)
getfp(3C)
My frame pointer = 16000012650.
Note that the frame pointer will vary.
DG/UX 4.00 Page 2
Licensed material--property of copyright holder(s)