How Does a Program Know Where it is Running?

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

 



How does a program find out in which directory it resides?  I've tried
argv[0], but if the program is started via a link that just contains she
name of the link.

Thanks,
John

-- 
John J. Boyer; Executive Director, Chief Software Developer
Computers to Help People, Inc.
http://www.chpi.org
825 East Johnson; Madison, WI 53703



_______________________________________________

Blinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/blinux-list

[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]