EMILE/libcontainer/container_close.c

24 lines
318 B
C

/*
*
* (c) 2005 Laurent Vivier <Laurent@lvivier.info>
*
*/
#include <stdlib.h>
#include "libcontainer.h"
#include "container.h"
void container_close(stream_FILE *file)
{
if (file == NULL)
return;
if (((container_FILE*)file)->container)
free(((container_FILE*)file)->container);
free(file);
return;
}