forked from Imagelibrary/littlefs
Improve lfs_file_close usage description
Improve the lfs_file_close usage description to make it clearer that the configuration structure must remain valid for its lifetime In reference to #722
This commit is contained in:
committed by
Christopher Haster
parent
40dba4a556
commit
a25681b2a6
4
lfs.h
4
lfs.h
@@ -534,8 +534,8 @@ int lfs_file_open(lfs_t *lfs, lfs_file_t *file,
|
|||||||
// are values from the enum lfs_open_flags that are bitwise-ored together.
|
// are values from the enum lfs_open_flags that are bitwise-ored together.
|
||||||
//
|
//
|
||||||
// The config struct provides additional config options per file as described
|
// The config struct provides additional config options per file as described
|
||||||
// above. The config struct must be allocated while the file is open, and the
|
// above. The config struct must remain allocated while the file is open, and
|
||||||
// config struct must be zeroed for defaults and backwards compatibility.
|
// the config struct must be zeroed for defaults and backwards compatibility.
|
||||||
//
|
//
|
||||||
// Returns a negative error code on failure.
|
// Returns a negative error code on failure.
|
||||||
int lfs_file_opencfg(lfs_t *lfs, lfs_file_t *file,
|
int lfs_file_opencfg(lfs_t *lfs, lfs_file_t *file,
|
||||||
|
|||||||
Reference in New Issue
Block a user