Lines Matching refs:env
94 char *env; in memory_tracking_init() local
96 env = curl_getenv("CURL_MEMDEBUG"); in memory_tracking_init()
97 if(env) { in memory_tracking_init()
100 if(strlen(env) >= CURL_MT_LOGFNAME_BUFSIZE) in memory_tracking_init()
101 env[CURL_MT_LOGFNAME_BUFSIZE-1] = '\0'; in memory_tracking_init()
102 strcpy(fname, env); in memory_tracking_init()
103 curl_free(env); in memory_tracking_init()
110 env = curl_getenv("CURL_MEMLIMIT"); in memory_tracking_init()
111 if(env) { in memory_tracking_init()
113 long num = strtol(env, &endptr, 10); in memory_tracking_init()
114 if((endptr != env) && (endptr == env + strlen(env)) && (num > 0)) in memory_tracking_init()
116 curl_free(env); in memory_tracking_init()