[ ]
 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Homepage FreeRTOS Labs FreeRTOS+TCP FreeRTOS+FAT Contact / Enquiries


FreeRTOS+FAT is still in the lab
FreeRTOS+FAT is already in use in commercial products and we encourage you to try it yourself. Be aware however that FreeRTOS+FAT was acquired by Real Time Engineers Ltd., and is still being documented and updated to ensure it meets our strict quality standards. Please use the forum for support, or contact us directly if you have a specific business interest.

ff_filelength()

[FreeRTOS+FAT Standard API Reference]

ff_stdio.h
size_t ff_filelength( FF_FILE *pxStream );
		

Return the length in bytes of a file that has been opened for reading.

Parameters:

pxStream   A pointer to the file being queried. This will be the same pointer returned by ff_fopen() when the file was originally opened.

Returns:

If the length of the file was successfully obtained then the file's length is returned.

If the length of the file could not be obtained then 0 is returned and the task's errno is set to indicate the reason. The length of a file can only be obtained if the file is open for reading and the file's length fits in a variable of type size_t.



[ Back to the top ]    [ About FreeRTOS ]    [ FreeRTOS Labs Sitemap ]    [ Main FreeRTOS Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.