** Read an integer numeral from string 'fmt' or return 'df' if ** there is no numeral */
| 1178 | ** there is no numeral |
| 1179 | */ |
| 1180 | static int digit (int c) { return '0' <= c && c <= '9'; } |
| 1181 | |
| 1182 | static int getnum (const char **fmt, int df) { |
| 1183 | if (!digit(**fmt)) /* no number? */ |