MCPcopy Create free account
hub / github.com/DFHack/dfhack / readdigits

Function readdigits

depends/lua/src/liolib.c:429–434  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

427** Read a sequence of (hex)digits
428*/
429static int readdigits (RN *rn, int hex) {
430 int count = 0;
431 while ((hex ? isxdigit(rn->c) : isdigit(rn->c)) && nextc(rn))
432 count++;
433 return count;
434}
435
436
437/*

Callers 1

read_numberFunction · 0.85

Calls 2

isxdigitFunction · 0.85
nextcFunction · 0.85

Tested by

no test coverage detected