Lines Matching refs:len
102 size_t len; in fgets() local
142 if ((len = fp->_r) <= 0) in fgets()
154 len = fp->_r; in fgets()
164 if (len > (size_t) n) /* n is always non-negative here */ in fgets()
165 len = (size_t) n; in fgets()
166 t = (unsigned char *) memchr ((void *) p, '\n', len); in fgets()
169 len = ++t - p; in fgets()
170 fp->_r -= len; in fgets()
172 (void) memcpy ((void *) s, (void *) p, len); in fgets()
173 s[len] = 0; in fgets()
177 fp->_r -= len; in fgets()
178 fp->_p += len; in fgets()
179 (void) memcpy ((void *) s, (void *) p, len); in fgets()
180 s += len; in fgets()
182 while ((n -= len) != 0); in fgets()