On 2011-12-23 12:41:56 +0100, Piotr Caban wrote: > This is still not working good. I don't know how it should be > implemented without doing much more testing. Probably printing a > FIXME message and returning an error will be acceptable. > > If you want to fully implement it I guess it should do something like this: > - execute _filbuf (this is probably causing the one character > position change you're observing) > - analyze internal FILE buffer and return error if needed > - do the read > There are some problems if more data should be read then can be > stored in internal FILE buffer.
I don't want to fully implement fread_s. It is suffice for me to call fread without paramater validation. I'd like to send reduced version if it is acceptable.
