MCPcopy Create free account
hub / github.com/Entware/Entware / get_line

Function get_line

scripts/config/nconf.gui.c:140–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140const char *get_line(const char *text, int line_no)
141{
142 int i;
143 int lines = 0;
144
145 if (!text)
146 return NULL;
147
148 for (i = 0; text[i] != '\0' && lines < line_no; i++)
149 if (text[i] == '\n')
150 lines++;
151 return text+i;
152}
153
154int get_line_length(const char *line)
155{

Callers 4

fill_windowFunction · 0.70
btn_dialogFunction · 0.70
dialog_inputboxFunction · 0.70
show_scroll_win_extFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected