GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
GETCALLERPC(3) FreeBSD Library Functions Manual GETCALLERPC(3)

getcallerpc - fetch return PC of current function

#include <u.h>
#include <libc.h>

ulong getcallerpc(void *firstarg)

Getcallerpc is a portable way to discover the PC to which the current function will return. Firstarg should be a pointer to the first argument to the function in question.

void
printpc(ulong arg)
{
	print("Called from %.8lux\n", getcallerpc(&arg));
}
void
main(int argc, char *argv[])
{
	printpc(0);
	printpc(0);
	printpc(0);
}
    

/src/lib9/

The firstarg parameter should not be necessary.

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.