From 16c4074e47277576295bffa5051b594f0771a5fc Mon Sep 17 00:00:00 2001 From: Michael Holzheu Date: Mon, 27 Nov 2017 14:39:24 +0100 Subject: [PATCH] util_path_example: Add example for new util_path_exists() function Signed-off-by: Michael Holzheu --- libutil/util_path_example.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libutil/util_path_example.c b/libutil/util_path_example.c index 2e450472..cf020168 100644 --- a/libutil/util_path_example.c +++ b/libutil/util_path_example.c @@ -55,6 +55,10 @@ static void test_util_path_sysfs(void) static void test_path(const char *path) { printf("%-20s: ", path); + if (util_path_exists(path)) + printf("exists=yes, "); + else + printf("exists=no , "); if (util_path_is_readable(path)) printf("read=yes, "); else