mirror of
https://github.com/vivier/EMILE.git
synced 2025-01-02 21:30:29 +00:00
9bd9755dbb
Signed-off-by: Laurent Vivier <Laurent@Vivier.EU>
22 lines
316 B
C
22 lines
316 B
C
/*
|
|
*
|
|
* (c) 2005 Laurent Vivier <Laurent@Vivier.EU>
|
|
*
|
|
*/
|
|
|
|
#include "libblock.h"
|
|
#include "block.h"
|
|
|
|
int block_fstat(stream_FILE *_file, struct stream_stat *buf)
|
|
{
|
|
block_FILE *file = (block_FILE*)_file;
|
|
if (buf == NULL)
|
|
return -1;
|
|
if (file->size == -1)
|
|
return -1;
|
|
|
|
buf->st_size = file->size;
|
|
|
|
return 0;
|
|
}
|