| 416 | } |
| 417 | |
| 418 | static unsigned long linelen(const char *buffer, unsigned long size) |
| 419 | { |
| 420 | unsigned long len = 0; |
| 421 | while (size--) { |
| 422 | len++; |
| 423 | if (*buffer++ == '\n') |
| 424 | break; |
| 425 | } |
| 426 | return len; |
| 427 | } |
| 428 | |
| 429 | static int is_dev_null(const char *str) |
| 430 | { |
no outgoing calls
no test coverage detected