diff options
Diffstat (limited to 'src/includes')
-rw-r--r-- | src/includes/rc-misc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/includes/rc-misc.h b/src/includes/rc-misc.h index 68ebc803..ff32df92 100644 --- a/src/includes/rc-misc.h +++ b/src/includes/rc-misc.h @@ -111,6 +111,12 @@ static inline bool exists (const char *pathname) return (stat (pathname, &buf) == 0); } +static inline bool existss (const char *pathname) +{ + struct stat buf; + + return (stat (pathname, &buf) == 0 && buf.st_size != 0); +} char *rc_conf_value (const char *var); bool rc_conf_yesno (const char *var); char **env_filter (void); |