Newsgroups: comp.lang.c Path: utzoo!henry From: henry@zoo.toronto.edu (Henry Spencer) Subject: Re: Strings as function names (again) Message-ID: <1991Feb8.180418.19850@zoo.toronto.edu> Organization: U of Toronto Zoology References: <388@bria> <14972@smoke.brl.mil> Date: Fri, 8 Feb 1991 18:04:18 GMT In article wolfram@ikki.informatik.rwth-aachen.de (Wolfram Roesler) writes: >>One is that you have to tell it a path to the executable file, and >>that is not in general available for the currently-executing process. > >Sure? How about argv[0] ? argv[0] usually, but not always, contains the name under which the program was invoked. That has no guaranteed relationship to its pathname. -- "Maybe we should tell the truth?" | Henry Spencer at U of Toronto Zoology "Surely we aren't that desperate yet." | henry@zoo.toronto.edu utzoo!henry