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

Function test2

depends/lua/src/liolib.c:419–423  ·  view source on GitHub ↗

** Accept current char if it is in 'set' (of size 2) */

Source from the content-addressed store, hash-verified

417** Accept current char if it is in 'set' (of size 2)
418*/
419static int test2 (RN *rn, const char *set) {
420 if (rn->c == set[0] || rn->c == set[1])
421 return nextc(rn);
422 else return 0;
423}
424
425
426/*

Callers 1

read_numberFunction · 0.85

Calls 1

nextcFunction · 0.85

Tested by

no test coverage detected