Contents of argv[0]
Henry Spencer
henry at utzoo.uucp
Sun Aug 20 12:32:48 AEST 1989
In article <1935 at ifi.uio.no> gisle at ifi.uio.no (Gisle Hannemyr) writes:
>> This effectively means that in general, argv[0] cannot
>> be treated as a reliable source for the path name! [RTFM]
>
>Is there anything that can be relied upon for this?
No.
>I want to know which directory the executable file resided in.
In current systems you simply don't know.
--
V7 /bin/mail source: 554 lines.| Henry Spencer at U of Toronto Zoology
1989 X.400 specs: 2200+ pages. | uunet!attcan!utzoo!henry henry at zoo.toronto.edu
More information about the Comp.lang.c
mailing list