| 138 | } |
| 139 | |
| 140 | const 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 | |
| 154 | int get_line_length(const char *line) |
| 155 | { |
no outgoing calls
no test coverage detected