mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-30 15:50:28 +08:00
change format
This commit is contained in:
parent
3e46db932a
commit
576475f14f
@ -269,16 +269,14 @@ long _sys_flen(FILEHANDLE fh)
|
||||
{
|
||||
#ifdef RT_USING_DFS
|
||||
struct stat stat;
|
||||
#endif
|
||||
|
||||
|
||||
if (fh < STDERR)
|
||||
return -1;
|
||||
|
||||
#ifndef RT_USING_DFS
|
||||
return -1;
|
||||
#else
|
||||
fstat(fh, &stat);
|
||||
return stat.st_size;
|
||||
#else
|
||||
return -1;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user