TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: PETER HAYWOOD
from: KURT KUZBA
date: 1998-04-19 03:08:00
subject: free`ing memory

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.