mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user