Strings as function names (again)
uunet!bria!mike
uunet!bria!mike
Thu Feb 14 17:46:04 AEST 1991
In an article, akela.informatik.rwth-aachen.de!wolfram (Wolfram Roesler) writes:
|Using execl or some other syscall to make argv[0] be completely different
|from the bin path is very rarely used (calling login shells is the only
|example that comes to my mind). [...]
Well, most programs that exec only hand the basename of the image to argv[0],
although it would be a wonderful world if they provided the full path.
Of course, it _is_ extremely poor taste to pass anything other than the image
name in argv[0], but it is ocassionally done. Just can't depend on
anything these days ... :-)
--
Michael Stefanik | Opinions stated are not even my own.
Systems Engineer, Briareus Corporation | UUCP: ...!uunet!bria!mike
-------------------------------------------------------------------------------
technoignorami (tek'no-ig'no-ram`i) a group of individuals that are constantly
found to be saying things like "Well, it works on my DOS machine ..."
More information about the Comp.lang.c
mailing list