Lines Matching refs:text
175 int get_line_no(const char *text) in get_line_no() argument
180 if (!text) in get_line_no()
183 for (i = 0; text[i] != '\0'; i++) in get_line_no()
184 if (text[i] == '\n') in get_line_no()
189 const char *get_line(const char *text, int line_no) in get_line() argument
194 if (!text) in get_line()
197 for (i = 0; text[i] != '\0' && lines < line_no; i++) in get_line()
198 if (text[i] == '\n') in get_line()
200 return text+i; in get_line()
214 void fill_window(WINDOW *win, const char *text) in fill_window() argument
217 int total_lines = get_line_no(text); in fill_window()
225 const char *line = get_line(text, i); in fill_window()
552 const char *text) in show_scroll_win() argument
555 int total_lines = get_line_no(text); in show_scroll_win()
570 total_lines = get_line_no(text); in show_scroll_win()
572 const char *line = get_line(text, i); in show_scroll_win()
580 fill_window(pad, text); in show_scroll_win()