mirror of
https://github.com/labwc/labwc.git
synced 2026-02-17 22:05:30 -05:00
common/file-helpers.c: share file_exists() to reduce duplication
This commit is contained in:
parent
a8951c4b75
commit
a386133068
5 changed files with 26 additions and 17 deletions
12
include/common/file-helpers.h
Normal file
12
include/common/file-helpers.h
Normal 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 */
|
||||
Loading…
Add table
Add a link
Reference in a new issue