aboutsummaryrefslogtreecommitdiffstats
path: root/src/argparser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/argparser.c')
-rw-r--r--src/argparser.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/argparser.c b/src/argparser.c
new file mode 100644
index 0000000..a3020d6
--- /dev/null
+++ b/src/argparser.c
@@ -0,0 +1,38 @@
+/**
+ * argparser – command line argument parser library
+ *
+ * Copyright © 2013 Mattias Andrée (maandree@member.fsf.org)
+ *
+ * This library 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 library 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 library. If not, see <http://www.gnu.org/licenses/>.
+ */
+#include <stdlib.h>
+#include <stdio.h>
+
+
+long args_linuxvt;
+char* args_program;
+char* args_dscription;
+char* args_usage;
+char* args_longdscription;
+
+
+extern void args_init(char* dscription, char* usage, char* longdscription, char* program, long usestderr)
+{
+ char* term = getenv("TERM");
+
+args_dscription;
+args_usage;
+args_longdscription;
+}
+