libite
|
#include <errno.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <unistd.h>
#include "lite.h"
Functions | |
int | fexist (const char *file) |
Check if a file exists in the file system. More... | |
int | fexistf (const char *fmt,...) |
Like fexist() but with formatted string support. More... | |
int fexist | ( | const char * | file | ) |
Check if a file exists in the file system.
file | File to look for, with full path. |
TRUE(1)
if the file exists, otherwise FALSE(0)
. int fexistf | ( | const char * | fmt, |
... | |||
) |
Like fexist() but with formatted string support.
fmt | Formatted string to be composed into the file to look for. |
This is a wrapper for the fexist() function in lite.h, lessening the burden of having to compose the filename from parts in a seprate buffer.
TRUE(1)
if the file exists, otherwise FALSE(0)
.