Lines Matching defs:temp
92 char *temp = malloc(strlen(basedir) + strlen(filename) + 2);
93 if (temp == NULL)
95 sprintf(temp, "%s/%s", basedir, filename);
96 sysfsfp = fopen(temp, "w");
98 printf("failed to open %s\n", temp);
105 sysfsfp = fopen(temp, "r");
107 printf("failed to open %s\n", temp);
121 free(temp);
139 char *temp = malloc(strlen(basedir) + strlen(filename) + 2);
140 if (temp == NULL) {
144 sprintf(temp, "%s/%s", basedir, filename);
145 sysfsfp = fopen(temp, "w");
147 printf("Could not open %s\n", temp);
154 sysfsfp = fopen(temp, "r");
159 fscanf(sysfsfp, "%s", temp);
160 if (strcmp(temp, val) != 0) {
164 temp,
172 free(temp);
196 char *temp = malloc(strlen(basedir) + strlen(filename) + 2);
197 if (temp == NULL) {
201 sprintf(temp, "%s/%s", basedir, filename);
202 sysfsfp = fopen(temp, "r");
210 free(temp);
218 char *temp = malloc(strlen(basedir) + strlen(filename) + 2);
219 if (temp == NULL) {
223 sprintf(temp, "%s/%s", basedir, filename);
224 sysfsfp = fopen(temp, "r");
232 free(temp);