EMILE/libblock/block_fstat.c

20 lines
258 B
C
Raw Normal View History

2005-11-23 22:39:03 +00:00
/*
*
* (c) 2005 Laurent Vivier <Laurent@lvivier.info>
2005-11-23 22:39:03 +00:00
*
*/
#include "libblock.h"
int block_fstat(block_FILE *file, struct stream_stat *buf)
{
if (buf == NULL)
return -1;
if (file->size == -1)
return -1;
buf->st_size = file->size;
return 0;
}