PH> fopen() is not a memory allocation function. It is a file
PH> opening function. Its compliment is fclose(). You cannot
PH> use free() on it.
:) Right. The confusion arose from documentation stating that
the fopen() function allocates a buffer space, which may be
variably set using setbuf() and setvbuf(). The question was
as to whether it is necessary to use free() to return this
allocated buffer to the system. Of course, fclose() takes
the responsibility for de-allocating the associated buffer.
> ] It's around somewhere. I put it where I wouldn't lose it....
---
---------------
* Origin: *YOPS ]I[* 8.4 GIG * RA/FD/FE * Milwaukee, WI (1:154/750)
|