summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
new file mode 100644
index 0000000..cdba2bf
--- /dev/null
+++ b/src/common.h
@@ -0,0 +1,34 @@
+/**
+ * Dailyjournal is an easy tool to log daily activities
+ * Copyright (C) 2022 Aaron Ball <nullspoon@oper.io>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#define _XOPEN_SOURCE
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <time.h>
+
+#define DEFAULT_EXTENSION ".md"
+
+void config_getpaths(char*, char*, char*);
+void get_user_editor(char*);
+int fedit(char*);
+int fexists(char*);
+int safe_cp(char*, char*);
+void getdate(int, char*, int);
+void getpath(char*, int, char*, char*);
+int env_if_set(char*, char*);

Generated by cgit