Lines Matching refs:head
69 static inline void remove_newline(char **head)
72 if (**head == '\n') {
73 *head = *head + 1;
87 char *head, *tail;
126 head = buf;
129 head = strstr(buf, opt->partname);
130 if (head == NULL)
135 remove_newline(&head);
136 tail = strchr(head, ':');
140 if (strlen(head) >= sizeof(keyname)) {
141 dbg("[OVER] %s\n", head);
143 tail = strchr(head, '\n');
144 head = tail + 1;
148 strcpy(keyname, head);
151 dbg("[RESULT] %s (%s)\n", head, (found) ? "O" : "X");
152 head = tail + 1;
156 *(found->val) = strtoul(head, &tail, 10);
159 tail = strstr(head, "in");
160 head = tail + 2;
161 npages = strtoul(head, &tail, 10);
174 tail = strchr(head, '\n');
177 head = tail + 1;
187 " -i interval of head info\n"
215 void __make_head(char *head, int index, int i, int len)
220 *(head + index) = '|';
222 memset(head + index, '-', half);
224 strcpy(head + index, name_h[i]);
226 memset(head + index, '-', half);
232 char buf[1024], head[1024];
239 memset(head, ' ', 1024);
248 __make_head(head, prev_index, 0, len);
252 __make_head(head, prev_index, 1, len);
256 __make_head(head, prev_index, 2, len);
260 __make_head(head, prev_index, 3, len);
269 __make_head(head, prev_index, 4, len);
272 *(head + (ptr_buf - buf - 1)) = '|';
273 *(head + (ptr_buf - buf)) = 0;
274 fprintf(stderr, "%s\n%s\n", head, buf);