util_path_example: Add example for new util_path_exists() function

Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
This commit is contained in:
Michael Holzheu
2017-11-27 14:39:24 +01:00
parent 2b92bc4c08
commit 16c4074e47
+4
View File
@@ -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