Lines Matching refs:current_pos
106 char *current_pos = begin; in find_line_after_last() local
115 one = memmem(current_pos, end - current_pos, needle1_newline, strlen(needle1_newline)); in find_line_after_last()
116 two = memmem(current_pos, end - current_pos, needle2_newline, strlen(needle2_newline)); in find_line_after_last()
120 if (one != NULL && current_pos < one) in find_line_after_last()
121 current_pos = one; in find_line_after_last()
122 if (two != NULL && current_pos < two) in find_line_after_last()
123 current_pos = two; in find_line_after_last()
125 one = next_line(current_pos, end); in find_line_after_last()
127 current_pos = one; in find_line_after_last()
132 one = memchr(current_pos, '\n', end - current_pos); in find_line_after_last()
136 return current_pos; in find_line_after_last()