aboutsummaryrefslogtreecommitdiffhomepage
path: root/uzbl.c
diff options
context:
space:
mode:
Diffstat (limited to 'uzbl.c')
-rw-r--r--uzbl.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/uzbl.c b/uzbl.c
index f8fdc95..3e90100 100644
--- a/uzbl.c
+++ b/uzbl.c
@@ -189,6 +189,16 @@ static Command commands[] =
/* -- CORE FUNCTIONS -- */
+static bool
+file_exists (const char * filename)
+{
+ if (FILE * file = fopen (filename, "r")) {
+ fclose (file);
+ return true;
+ }
+ return false;
+}
+
// make sure to put '' around args, so that if there is whitespace we can still keep arguments together.
static gboolean
run_command(const char *command, const char *args) {