please help me,
i am working on maintenence project, in that they have used setvbuf, but it is showing very strange before in unix and windows,
in case of unix with _IOLBF option once it is opened and set with buffer size with setvbuf and the contents are written to the file once the maximum size reaches it flushes the buffer and starts from begining, so there is no memory problem.
but in windows once it reaches the maximum size of buffer it will not starts from begining,
may be for win32 there is no diffrence from _IOFBF and _IOLBF ,
but in depth can you tell me the difference b/w _IOFBF and _IOLBF because in net i have seen only definitions for these.
my question is what is the reason for this behavior if i want to replace the this function with some general or simple functions how to do,
what is the replacement of setvbuf,
please inform. thanks in advance.