EMILE/libcontainer/container_close.c

23 lines
264 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"
int container_close(container_FILE *file)
{
if (file == NULL)
return -1;
if (file->container)
free(file->container);
free(file);
return 0;
}