Lines Matching defs:linem
344 line_matches_t *linem;
347 for (linem = *plinem; linem != NULL; linem = linem->next) {
348 if (linem->len == len && strncmp(line, linem->line, len) == 0)
352 linem = malloc(sizeof (*linem));
354 if (linem == NULL)
357 linem->line = strndup(line, len);
358 if (linem->line == NULL) {
359 free(linem);
363 linem->len = len;
364 linem->next = *plinem;
365 *plinem = linem;