Lines Matching refs:env
107 char *env; in memory_tracking_init() local
109 env = curl_getenv("CURL_MEMDEBUG"); in memory_tracking_init()
110 if(env) { in memory_tracking_init()
113 if(strlen(env) >= CURL_MT_LOGFNAME_BUFSIZE) in memory_tracking_init()
114 env[CURL_MT_LOGFNAME_BUFSIZE-1] = '\0'; in memory_tracking_init()
115 strcpy(fname, env); in memory_tracking_init()
116 curl_free(env); in memory_tracking_init()
123 env = curl_getenv("CURL_MEMLIMIT"); in memory_tracking_init()
124 if(env) { in memory_tracking_init()
126 long num = strtol(env, &endptr, 10); in memory_tracking_init()
127 if((endptr != env) && (endptr == env + strlen(env)) && (num > 0)) in memory_tracking_init()
129 curl_free(env); in memory_tracking_init()