Lines Matching full:env

12   char env[1024];  in test_auto_var()  local
13 (void)snprintf(env, sizeof(env), "TEST=%s", var); in test_auto_var()
14 …return putenv(env); // expected-warning{{The 'putenv' function should not be called with arrays th… in test_auto_var()
18 static char env[1024]; in test_static_var() local
19 (void)snprintf(env, sizeof(env), "TEST=%s", var); in test_static_var()
20 return putenv(env); // no-warning: static array is used in test_static_var()
26 char *env = (char *)malloc(len); in test_heap_memory() local
27 if (env == NULL) in test_heap_memory()
29 if (putenv(env) != 0) // no-warning: env was dynamically allocated. in test_heap_memory()
30 free(env); in test_heap_memory()
35 char Env[1024]; member
40 return putenv(mem.Env); // expected-warning{{The 'putenv' function should not be called with}} in test_auto_var_struct()
44 char env[1024]; in test_auto_var_subarray() local
45 return putenv(env + 100); // expected-warning{{The 'putenv' function should not be called with}} in test_auto_var_subarray()
48 int f_test_auto_var_call(char *env) { in f_test_auto_var_call() argument
49 return putenv(env); // expected-warning{{The 'putenv' function should not be called with}} in f_test_auto_var_call()
53 char env[1024]; in test_auto_var_call() local
54 return f_test_auto_var_call(env); in test_auto_var_call()
58 char *env = "TEST"; in test_constant() local
59 return putenv(env); // no-warning: data is not on the stack in test_constant()
68 char env[] = "NAME=value"; in test_auto_var_reset() local
69 putenv(env); // expected-warning{{The 'putenv' function should not be called with}} in test_auto_var_reset()
81 void f_main(char *env) { in f_main() argument
82 putenv(env); // no warning: string allocated in stack of 'main' in f_main()
86 char env[] = "NAME=value"; in main() local
87 putenv(env); // no warning: string allocated in stack of 'main' in main()
88 f_main(env); in main()