MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / nextc

Function nextc

third-party/lua-5.3.5/src/liolib.c:401–411  ·  view source on GitHub ↗

** Add current char to buffer (if not out of space) and read next one */

Source from the content-addressed store, hash-verified

399** Add current char to buffer (if not out of space) and read next one
400*/
401static int nextc (RN *rn) {
402 if (rn->n >= L_MAXLENNUM) { /* buffer overflow? */
403 rn->buff[0] = '\0'; /* invalidate result */
404 return 0; /* fail */
405 }
406 else {
407 rn->buff[rn->n++] = rn->c; /* save current char */
408 rn->c = l_getc(rn->f); /* read next one */
409 return 1;
410 }
411}
412
413
414/*

Callers 2

test2Function · 0.70
readdigitsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected