** Read an integer numeral from string 'fmt' or return 'df' if ** there is no numeral */
| 1445 | ** there is no numeral |
| 1446 | */ |
| 1447 | static int digit (int c) { return '0' <= c && c <= '9'; } |
| 1448 | |
| 1449 | static int getnum (const char **fmt, int df) { |
| 1450 | if (!digit(**fmt)) /* no number? */ |