| 36 | } |
| 37 | |
| 38 | static int ParseWidth(const char* format, int* width) |
| 39 | { |
| 40 | if (!isdigit(*format)) |
| 41 | return 0; |
| 42 | char* endptr; |
| 43 | *width = strtoul(format, &endptr, 10); |
| 44 | if (*width < 0) |
| 45 | return 0; |
| 46 | return endptr - format;; |
| 47 | } |
| 48 | |
| 49 | static int ParseLength(const char* format, int* length) |
| 50 | { |
no outgoing calls
no test coverage detected