** Read an integer numeral from string 'fmt' or return 'df' if ** there is no numeral */
| 1400 | ** there is no numeral |
| 1401 | */ |
| 1402 | static int digit (int c) { return '0' <= c && c <= '9'; } |
| 1403 | |
| 1404 | static int getnum (const char **fmt, int df) { |
| 1405 | if (!digit(**fmt)) /* no number? */ |