Strings as function names (again)

Stephen Clamage steve at taumet.com
Sun Feb 10 04:48:51 AEST 1991


wolfram at ikki.informatik.rwth-aachen.de (Wolfram Roesler) writes:

>gwyn at smoke.brl.mil (Doug Gwyn) 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] ?

How about it?  In an ANSI-conforming implementation (2.1.2.2.1):
a.  argc may be 0, and argv a null pointer.
b.  argv[0] may point to a null character.
c.  argv[0] may contain the program name with no path information.
-- 

Steve Clamage, TauMetric Corp, steve at taumet.com



More information about the Comp.lang.c mailing list