Mercurial > molko
comparison libmlk-util/mlk/util/dir.h @ 590:22c8e00147c4
util: fix dir example
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 20 Mar 2023 21:03:11 +0100 |
parents | f937857336f3 |
children | b826e80c53cd |
comparison
equal
deleted
inserted
replaced
589:1e538203bf25 | 590:22c8e00147c4 |
---|---|
40 * fprintf(stderr, "unable to open the directory\n"); | 40 * fprintf(stderr, "unable to open the directory\n"); |
41 * return -1; | 41 * return -1; |
42 * } | 42 * } |
43 * | 43 * |
44 * while (mlk_dir_next(&iter)) { | 44 * while (mlk_dir_next(&iter)) { |
45 * printf("-> %s\n", iter->entry); | 45 * printf("-> %s\n", iter.entry); |
46 * } | 46 * } |
47 * | 47 * |
48 * // At this step the directory iterator is already destroyed for convenience. | 48 * // At this step the directory iterator is already destroyed for convenience. |
49 * ``` | 49 * ``` |
50 */ | 50 */ |