MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / digit

Function digit

3rd/lua-5.4.3/src/lstrlib.c:1396–1396  ·  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

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

Callers 1

getnumFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected