Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/file.c')
-rw-r--r--src/base/file.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/base/file.c b/src/base/file.c
deleted file mode 100644
index 5156a4f..0000000
--- a/src/base/file.c
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- * \file file.c
- * \brief File handling.
- * \author Copyright (c) 2002-2008 Jason Perkins and the Premake project
- */
-
-#include <assert.h>
-#include <sys/stat.h>
-#include "premake.h"
-#include "base.h"
-
-
-/**
- * Determine if a particular file exists on the filesystem.
- * \returns True if the file exists.
- */
-int file_exists(const char* path)
-{
- struct stat buf;
-
- assert(path);
-
- if (stat(path, &buf) == 0)
- {
- return ((buf.st_mode & S_IFDIR) == 0);
- }
- else
- {
- return 0;
- }
-}