** Add current char to buffer (if not out of space) and read next one */
| 436 | ** Add current char to buffer (if not out of space) and read next one |
| 437 | */ |
| 438 | static int nextc (RN *rn) { |
| 439 | if (l_unlikely(rn->n >= L_MAXLENNUM)) { /* buffer overflow? */ |
| 440 | rn->buff[0] = '\0'; /* invalidate result */ |
| 441 | return 0; /* fail */ |
| 442 | } |
| 443 | else { |
| 444 | rn->buff[rn->n++] = rn->c; /* save current char */ |
| 445 | rn->c = l_getc(rn->f); /* read next one */ |
| 446 | return 1; |
| 447 | } |
| 448 | } |
| 449 | |
| 450 | |
| 451 | /* |
no outgoing calls
no test coverage detected