[oclug]C/UNIX question

Bart Trojanowski bart-oclug at jukie.net
Sat Oct 19 13:27:30 EDT 2002


Anyone know if there is a way for a library to find out what the
process/executable name is that had called it?

Ie, in a C app I can find out what the executable file name is by
looking at argv[0].  I would like to do something similar from a
library without needing to pass that info to the library from the
application.

I just needs this for debugging so unportable hacks are welcome. :)

Cheers,
B.

-- 
				WebSig: http://www.jukie.net/~bart/sig/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://tux.oclug.on.ca/pipermail/oclug/attachments/20021019/a14bb10d/attachment.bin


More information about the OCLUG mailing list