MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / digit

Function digit

extlibs/lua/src/lstrlib.c:1402–1402  ·  view source on GitHub ↗

** Read an integer numeral from string 'fmt' or return 'df' if ** there is no numeral */

Source from the content-addressed store, hash-verified

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

Callers 1

getnumFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected