common/file-helpers.c: share file_exists() to reduce duplication

This commit is contained in:
Johan Malm 2023-08-21 21:07:28 +01:00 committed by Johan Malm
parent a8951c4b75
commit a386133068
5 changed files with 26 additions and 17 deletions

View file

@ -0,0 +1,12 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef LABWC_FILE_HELPERS_H
#define LABWC_FILE_HELPERS_H
#include <stdbool.h>
/**
* file_exists() - Test if file exists.
* @filename: Name of file to test.
*/
bool file_exists(const char *filename);
#endif /* LABWC_FILE_HELPERS_H */