www.delorie.com/archives/browse.cgi | search |
Sender: | richdawe AT bigfoot DOT com |
Message-ID: | <3711C84A.F7A5DB10@meridian22.net> |
Date: | Mon, 12 Apr 1999 11:17:46 +0100 |
From: | Richard Dawe <richdawe AT bigfoot DOT com> |
X-Mailer: | Mozilla 4.08 [en] (X11; I; Linux 2.2.1 i586) |
MIME-Version: | 1.0 |
To: | DooMWiz <DooMWiz AT TicNet DOT Com> |
CC: | djgpp AT delorie DOT com |
Subject: | Re: which function can return the directory of the .exe ? |
References: | <7elgcd$4bv$1 AT wanadoo DOT fr> <21EF89438D8F2E17 DOT 6E21802C5B5E8F7A DOT 0AAE947B36D0BDC6 AT library-proxy DOT airnews DOT net> |
Reply-To: | djgpp AT delorie DOT com |
Hello. DooMWiz wrote: > AFAIK, there is no function to return the directory of an application. Check out this info page - type at command prompt: info libc alpha fnsplit fnsplit() will give you components of the filename. Use it on argv[0] and you should be able to get the program's path. HTH -- ============================================================================== Rich Dawe - 4th-year MSci Physicist @ Bristol University, UK richdawe AT bigfoot DOT com, http://www.bigfoot.com/~richdawe/ ==============================================================================
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |