is_empty • returns the line length when it is empty, 0 otherwise */
| 1344 | |
| 1345 | /* is_empty • returns the line length when it is empty, 0 otherwise */ |
| 1346 | static size_t |
| 1347 | is_empty(const uint8_t *data, size_t size) |
| 1348 | { |
| 1349 | size_t i; |
| 1350 | |
| 1351 | for (i = 0; i < size && data[i] != '\n'; i++) |
| 1352 | if (data[i] != ' ') |
| 1353 | return 0; |
| 1354 | |
| 1355 | return i + 1; |
| 1356 | } |
| 1357 | |
| 1358 | /* is_hrule • returns whether a line is a horizontal rule */ |
| 1359 | static int |
no outgoing calls
no test coverage detected