<< Previous | Next >>

fat_FileSize

int fat_FileSize( FATfile *file, unsigned long *length );

Description

Puts the current size of the file in bytes into length.

Parameters

file
Handle for an open file.

length
Pointer to the variable where the file length (in bytes) is to be placed.

Return Value

0: success.
-EINVAL: file is invalid.

Library

FAT.LIB

See Also

fat_Open, fat_Seek


Dynamic C Functions << Previous | Next >> rabbit.com