forked from len0rd/rockbox
Rockchip rk27xx utils
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29936 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
976a1699da
commit
8f4202db28
28 changed files with 1845 additions and 0 deletions
16
utils/rk27utils/rk27load/common.c
Normal file
16
utils/rk27utils/rk27load/common.c
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "common.h"
|
||||
|
||||
uint32_t filesize(FILE * f)
|
||||
{
|
||||
uint32_t filesize;
|
||||
|
||||
fseek(f, 0, SEEK_END);
|
||||
filesize = ftell(f);
|
||||
fseek(f, 0, SEEK_SET);
|
||||
|
||||
return filesize;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue