Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/littlefs-project/littlefs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Haster <chaster@utexas.edu>2019-04-13 01:07:25 +0300
committerGitHub <noreply@github.com>2019-04-13 01:07:25 +0300
commit73ea008b74e7eb9eb5079b295b85f5b394e064f0 (patch)
tree4d7133a544e4b2ba9565b0be58ac89a03fe4057c
parentc849748453f243ac7daa653043f7c20f06b9d205 (diff)
parent26d25608b6139ef5dbef6f724591a930dcb79b4a (diff)
Merge pull request #151 from Krakonos/masterv2.0.1
Fixed documentation for return lfs_dir_read return value.
-rw-r--r--lfs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lfs.h b/lfs.h
index ae991e0..c78b3d6 100644
--- a/lfs.h
+++ b/lfs.h
@@ -578,7 +578,8 @@ int lfs_dir_close(lfs_t *lfs, lfs_dir_t *dir);
// Read an entry in the directory
//
// Fills out the info structure, based on the specified file or directory.
-// Returns a negative error code on failure.
+// Returns a positive value on success, 0 at the end of directory,
+// or a negative error code on failure.
int lfs_dir_read(lfs_t *lfs, lfs_dir_t *dir, struct lfs_info *info);
// Change the position of the directory