labwc/src/common/file-helpers.c
John Lindgren 31d42b50e2 src: include primary header first
This is a common practice in C projects, which simply enforces that
each header must compile cleanly without implicit dependencies on
other headers (see also the previous commit).
2025-07-29 21:51:56 +01:00

10 lines
189 B
C

// SPDX-License-Identifier: GPL-2.0-only
#include "common/file-helpers.h"
#include <sys/stat.h>
bool
file_exists(const char *filename)
{
struct stat st;
return (!stat(filename, &st));
}