| 1344 | |
| 1345 | ATTRIBUTE_PURE |
| 1346 | static unsigned int |
| 1347 | format_to_mask (char const *format) |
| 1348 | { |
| 1349 | unsigned int mask = 0; |
| 1350 | |
| 1351 | for (char const *b = format; *b; b++) |
| 1352 | { |
| 1353 | if (*b != '%') |
| 1354 | continue; |
| 1355 | |
| 1356 | b += format_code_offset (b); |
| 1357 | if (*b == '\0') |
| 1358 | break; |
| 1359 | mask |= fmt_to_mask (*b); |
| 1360 | } |
| 1361 | return mask; |
| 1362 | } |
| 1363 | |
| 1364 | /* statx the file and print what we find */ |
| 1365 | NODISCARD |
no test coverage detected