-/* $Id$ */
-
/* fclose( FILE * )
This file is part of the Public Domain C Library (PDCLib).
#include <errno.h>
#ifndef REGTEST
-#include <_PDCLIB_io.h>
+#include "_PDCLIB_io.h"
#include <threads.h>
extern FILE * _PDCLIB_filelist;
{
remove( stream->filename );
}
+ /* Free user buffer (SetVBuf allocated) */
+ if ( stream->status & _PDCLIB_FREEBUFFER )
+ {
+ free( stream->buffer );
+ }
/* Free stream */
if ( ! ( stream->status & _PDCLIB_STATIC ) )
{
#endif
#ifdef TEST
-#include <_PDCLIB_test.h>
+#include "_PDCLIB_test.h"
int main( void )
{