mirror of
https://github.com/troglobit/libite.git
synced 2026-10-07 15:54:20 +07:00
+1
-1
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user