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