2 #include "stdio_impl.h"
5 char *fgetln(FILE *f, size_t *plen)
10 ungetc(getc_unlocked(f), f);
11 if (f->rend && (z=memchr(f->rpos, '\n', f->rend - f->rpos))) {
12 ret = (char *)f->rpos;
15 } else if ((l = getline(&f->getln_buf, (size_t[]){0}, f)) > 0) {