Download FreeRTOS

Quality RTOS & Embedded Software

Simplifying Authenticated Cloud Connectivity for Any Device.
Designing an energy efficient and cloud-connected IoT solution with CoAP.
Introducing FreeRTOS Kernel version 11.0.0:
FreeRTOS Roadmap and Code Contribution process.
OPC-UA over TSN with FreeRTOS.


[FreeRTOS-Plus-FAT Standard API Reference]

size_t ff_filelength( FF_FILE *pxStream );

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


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


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.

Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.