| 5 | size_t lineno = 0; |
| 6 | |
| 7 | void check(int cond, const char *format, ...) |
| 8 | { |
| 9 | if (!cond) { |
| 10 | va_list args; |
| 11 | if (lineno) |
| 12 | fprintf(stderr, "FAILED at line %zd: ", lineno); |
| 13 | else |
| 14 | fprintf(stderr, "FAILED: "); |
| 15 | va_start(args, format); |
| 16 | vfprintf(stderr, format, args); |
| 17 | va_end(args); |
| 18 | fprintf(stderr, "\n"); |
| 19 | exit(1); |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | size_t skipspaces(const unsigned char *buf, size_t i) |
| 24 | { |
no outgoing calls
no test coverage detected