Commit 3fa53d62 authored by Josh Coalson's avatar Josh Coalson
Browse files

add flac__file_get_filesize()

parent 3654682d
......@@ -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;
}
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment