Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!gem.mps.ohio-state.edu!ginosko!uunet!mcvax!sunic!ifi!gisle From: gisle@ifi.uio.no (Gisle Hannemyr) Newsgroups: comp.lang.c Subject: Re: Contents of argv[0] Message-ID: <1935@ifi.uio.no> Date: 19 Aug 89 13:58:48 GMT References: <9002@attctc.Dallas.TX.US> <1017@virtech.UUCP> <10094@csli.Stanford.EDU> Organization: gisle@ifi.uio.no Lines: 12 In-reply-to: gandalf@csli.Stanford.EDU's message of 15 Aug 89 18:10:43 GMT gandalf@csli.Stanford.EDU (Juergen Wagner) wrote: > 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? I want to know which directory the executable file resided in. - gisle hannemyr (Norwegian Computing Center) X.400: gisle@nr.uninett RFC: gisle@ifi.uio.no UUCP: ..!mcvax!ifi!gisle ------------------------------------------------