EMILE/libcontainer/container_fstat.c
Laurent Vivier 9bd9755dbb Update email address
Signed-off-by: Laurent Vivier <Laurent@Vivier.EU>
2013-09-05 14:45:27 +02:00

22 lines
363 B
C

/*
*
* (c) 2005-2008 Laurent Vivier <Laurent@Vivier.EU>
*
*/
#include "libcontainer.h"
#include "container.h"
int container_fstat(stream_FILE *_file, struct stream_stat *buf)
{
container_FILE *file = (container_FILE*)_file;
if (buf == NULL)
return -1;
if (file->container->size == -1)
return -1;
buf->st_size = file->container->size;
return 0;
}