Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2017-12-22 11:34:24 +01:00
parent 20af39300c
commit a9a3a2dda1
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -31,7 +31,7 @@
* Returns:
* %TRUE(1) if the file exists, otherwise %FALSE(0).
*/
int fexist(char *file)
int fexist(const char *file)
{
if (!file) {
errno = EINVAL;
+2 -2
View File
@@ -56,7 +56,7 @@ typedef struct lfile lfile_t;
char *chomp (char *str);
char *fparseln (FILE *, size_t *, size_t *, const char[3], int);
int fexist (char *file);
int fexist (const char *file);
int fisdir (const char *file);
FILE *tempfile (void);
@@ -165,7 +165,7 @@ static inline int erase(const char *path)
#endif
/* Does directory end with a slash? */
static inline int fisslashdir(char *dir)
static inline int fisslashdir(const char *dir)
{
if (!dir)
return 0;