EMILE/libext2/ext2_fstat.c

15 lines
229 B
C

/*
*
* (c) 2008 Laurent Vivier <Laurent@lvivier.info>
*
*/
#include "libext2.h"
#include "ext2.h"
int ext2_fstat(stream_FILE *file, struct stream_stat *buf)
{
buf->st_size = ((ext2_FILE*)file)->inode->i_size;
return 0;
}