Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!samsung!umich!umeecs!zip!bagchi From: bagchi@eecs.umich.edu (Ranjan Bagchi) Newsgroups: comp.unix.questions Subject: finding pathnames (not in FAQ) Message-ID: Date: 3 Jan 91 23:21:48 GMT Sender: news@zip.eecs.umich.edu Organization: University of Michigan Lines: 14 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 | --------------------------------------------------------------------------------