mirror of
https://github.com/troglobit/libite.git
synced 2026-11-06 15:50:57 +00:00
1 parent
20af39300c
commit
a9a3a2dda1
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -31,7 +31,7 @@
|
|||||||
* Returns:
|
* Returns:
|
||||||
* %TRUE(1) if the file exists, otherwise %FALSE(0).
|
* %TRUE(1) if the file exists, otherwise %FALSE(0).
|
||||||
*/
|
*/
|
||||||
int fexist(char *file)
|
int fexist(const char *file)
|
||||||
{
|
{
|
||||||
if (!file) {
|
if (!file) {
|
||||||
errno = EINVAL;
|
errno = EINVAL;
|
||||||
|
|||||||
+2
-2
@@ -56,7 +56,7 @@ typedef struct lfile lfile_t;
|
|||||||
char *chomp (char *str);
|
char *chomp (char *str);
|
||||||
char *fparseln (FILE *, size_t *, size_t *, const char[3], int);
|
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);
|
int fisdir (const char *file);
|
||||||
|
|
||||||
FILE *tempfile (void);
|
FILE *tempfile (void);
|
||||||
@@ -165,7 +165,7 @@ static inline int erase(const char *path)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Does directory end with a slash? */
|
/* Does directory end with a slash? */
|
||||||
static inline int fisslashdir(char *dir)
|
static inline int fisslashdir(const char *dir)
|
||||||
{
|
{
|
||||||
if (!dir)
|
if (!dir)
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in new issue
Block a user