EMILE/libcontainer/container_fstat.c

20 lines
292 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 "libcontainer.h"
int container_fstat(container_FILE *file, struct stream_stat *buf)
{
if (buf == NULL)
return -1;
if (file->container->size == -1)
return -1;
buf->st_size = file->container->size;
return 0;
}