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

Function readdigits

lib/lua/src/liolib.c:467–472  ·  view source on GitHub ↗

** Read a sequence of (hex)digits */

Source from the content-addressed store, hash-verified

465** Read a sequence of (hex)digits
466*/
467static int readdigits (RN *rn, int hex) {
468 int count = 0;
469 while ((hex ? isxdigit(rn->c) : isdigit(rn->c)) && nextc(rn))
470 count++;
471 return count;
472}
473
474
475/*

Callers 1

read_numberFunction · 0.85

Calls 1

nextcFunction · 0.85

Tested by

no test coverage detected