add flac__file_get_filesize()

This commit is contained in:
Josh Coalson
2001-06-07 20:00:50 +00:00
parent 3654682df9
commit 3fa53d6211
2 changed files with 11 additions and 0 deletions

View File

@@ -42,3 +42,13 @@ void flac__file_copy_metadata(const char *srcpath, const char *destpath)
#endif
}
}
off_t flac__file_get_filesize(const char *srcpath)
{
struct stat srcstat;
if(0 == stat(srcpath, &srcstat))
return srcstat.st_size;
else
return -1;
}

View File

@@ -20,5 +20,6 @@
#define flac__file_h
void flac__file_copy_metadata(const char *srcpath, const char *destpath);
off_t flac__file_get_filesize(const char *srcpath);
#endif