Lines Matching defs:content
505 struct filepointer *content;
508 content = malloc(sizeof(struct filepointer));
509 if (content == NULL)
511 content->f_name = file;
514 content->f_p = content->f_base = content->f_end = malloc(1);
515 if (content->f_p == NULL)
517 *content->f_p = '\0';
518 return (content);
521 content->f_base = malloc(st.st_size + 1);
522 if (content->f_base == NULL)
524 if ((st.st_size = read(fd, content->f_base, st.st_size)) < 0)
527 content->f_len = st.st_size + 1;
528 content->f_p = content->f_base;
529 content->f_end = content->f_base + st.st_size;
530 *content->f_end = '\0';
531 content->f_line = 0;
532 content->cmdinc_count = 0;
533 content->cmdinc_list = NULL;
534 content->cmdinc_line = 0;
535 return (content);