mirror of
https://github.com/vivier/EMILE.git
synced 2024-09-09 10:54:32 +00:00
20 lines
262 B
C
20 lines
262 B
C
/*
|
|
*
|
|
* (c) 2005 Laurent Vivier <LaurentVivier@wanadoo.fr>
|
|
*
|
|
*/
|
|
|
|
#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;
|
|
}
|