finding pathnames (not in FAQ)

Ranjan Bagchi bagchi at eecs.umich.edu
Fri Jan 4 10:21:48 AEST 1991


	According to FAQ, the only way for a program to find it's pathname
is to check out argv[0].  Is there no other way?  It would be nice
(i.e. something I'm working on would like it) if a function call could
determine the pathname of the executable it's called from.
 
	-rj
--
--------------------------------------------------------------------------------
Ranjan Bagchi - At Large.  Well Kinda.  |  what kind of person
bagchi@[eecs                            |  would want to count syllables
        caen,                           |  just to write haiku?
	math.lsa].umich.edu     	|  
--------------------------------------------------------------------------------



More information about the Comp.unix.questions mailing list