Date: Wed, 11 Mar 2009 09:54:00 +0100 From: =?UTF-8?B?VsOhY2xhdiBIYWlzbWFu?= <v.haisman@sh.cvut.cz> Cc: freebsd-hackers@freebsd.org Subject: Re: fgetc doubts Message-ID: <49B77C28.9020504@sh.cvut.cz> In-Reply-To: <49B6DC95.9070607@FreeBSD.org> References: <49B6DC95.9070607@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Gábor Kövesdán wrote, On 10.3.2009 22:33: > Hello, [...] > And the problem occurs in grep_fgetln() when the buffers is being filled > in: > for (; i < bufsiz && !grep_feof(f); i++) > binbuf[i] = grep_fgetc(f); > Also, why are you filling the buffer char by char? All of the input streams you have there support reading by chunks. -- VH
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49B77C28.9020504>