Lines Matching refs:str
143 char *str;
149 str = malloc(size + 1);
150 if (!str)
153 sprintf(str, "%s %s\n", key, value);
155 if (write(fd, str, size) < 0)
158 free(str);
188 char *map, *off, *end, *str;
269 str = malloc(len);
270 if (!str) {
275 memcpy(str, end, len);
280 free(str);
287 if (write(fd, str, len) < 0)
290 free(str);
312 char *map, *off, *end, *str = NULL;
351 str = malloc(end - off - len);
352 if (!str) {
357 memset(str, 0, end - off - len);
358 strncpy(str, off + len + 1, end - off - len - 1);
370 return str;