EMILE/libcontainer/container_close.c

24 lines
318 B
C
Raw Normal View History

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