[ ]
Real time embedded FreeRTOS mailing list 
Homepage FreeRTOS Labs FreeRTOS+TCP FreeRTOS+FAT FreeRTOS+POSIX 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_fclose()

[FreeRTOS+FAT Standard API Reference]

ff_stdio.h
int ff_fclose( FF_FILE *pxStream );;
		

Flushes then closes a file within the embedded FAT file system. The file must have previously been opened using ff_fopen().

Parameters:

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

Returns:

If the file was closed successfully then 0 is returned.

If the file could not be closed then -1 is returned and the task's errno is set to indicate the reason. A task can obtain its errno value using the ff_errno() API function.

Example usage:

The example provided on the ff_fopen() documentation page shows how ff_fclose() is used.



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




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