if(!env) {
#if defined(CURL_CA_SEARCH_SAFE)
char *cacert = NULL;
- FILE *cafile = Curl_execpath("curl-ca-bundle.crt", &cacert);
+ FILE *cafile = tool_execpath("curl-ca-bundle.crt", &cacert);
if(cafile) {
fclose(cafile);
config->cacert = strdup(cacert);
else {
char *fullp;
/* check for .curlrc then _curlrc in the dir of the executable */
- file = Curl_execpath(".curlrc", &fullp);
+ file = tool_execpath(".curlrc", &fullp);
if(!file)
- file = Curl_execpath("_curlrc", &fullp);
+ file = tool_execpath("_curlrc", &fullp);
if(file)
/* this is the filename we read from */
filename = fullp;
#endif /* USE_TOOL_FTRUNCATE */
#if defined(_WIN32) && !defined(UNDER_CE)
-FILE *Curl_execpath(const char *filename, char **pathp)
+FILE *tool_execpath(const char *filename, char **pathp)
{
static char filebuffer[512];
unsigned long len;
int struplocompare4sort(const void *p1, const void *p2);
#if defined(_WIN32) && !defined(UNDER_CE)
-FILE *Curl_execpath(const char *filename, char **pathp);
+FILE *tool_execpath(const char *filename, char **pathp);
#endif
#endif /* HEADER_CURL_TOOL_UTIL_H */