3 getcallerpc \- fetch return PC of current function
10 .B uintptr getcallerpc(void *firstarg)
13 is a portable way to discover the PC to which the current function will return.
15 should be a pointer to the first argument to the function in question.
22 print("Called from %p\en", getcallerpc(&arg));
26 main(int argc, char *argv[])
34 .B /sys/src/libc/$objtype/getcallerpc.[cs]
38 parameter should not be necessary.