Re: Absolute paths



M.Rogers@cs.ucl.ac.uk said:
> Doesn't argv[0] give you the full pathname of the executable image of
> your  application? 

No.  It gives what is typed on the command line.  `cat' and `/bin/cat' will 
give "cat" and "/bin/cat", respectively.

-- 
Mike Sangrey
mike@sojurn.lns.pa.us
Landisburg, Pa.
       Every Christian library should have a plaque which states:
              "There is one book which explains all these."







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]