MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / digit

Function digit

lib/lua/src/lstrlib.c:1447–1447  ·  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

1445** there is no numeral
1446*/
1447static int digit (int c) { return '0' <= c && c <= '9'; }
1448
1449static int getnum (const char **fmt, int df) {
1450 if (!digit(**fmt)) /* no number? */

Callers 1

getnumFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected