MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / digit

Function digit

third-party/lua-5.5.0/src/lstrlib.c:1451–1451  ·  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

1449** there is no numeral
1450*/
1451static int digit (int c) { return '0' <= c && c <= '9'; }
1452
1453static size_t getnum (const char **fmt, size_t df) {
1454 if (!digit(**fmt)) /* no number? */

Callers 1

getnumFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected