** Read an integer numeral from string 'fmt' or return 'df' if ** there is no numeral */
| 1394 | ** there is no numeral |
| 1395 | */ |
| 1396 | static int digit (int c) { return '0' <= c && c <= '9'; } |
| 1397 | |
| 1398 | static int getnum (const char **fmt, int df) { |
| 1399 | if (!digit(**fmt)) /* no number? */ |