Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
flac
Commits
3fa53d62
Commit
3fa53d62
authored
Jun 07, 2001
by
Josh Coalson
Browse files
add flac__file_get_filesize()
parent
3654682d
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/flac/file.c
View file @
3fa53d62
...
...
@@ -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
;
}
src/flac/file.h
View file @
3fa53d62
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment