From 9873efabfba0bfa0bccc745dbc9eb5749a2022aa Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 18 Jun 2013 20:37:58 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/argparser.c | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/argparser.c (limited to 'src/argparser.c') 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 . + */ +#include +#include + + +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; +} + -- cgit v1.2.3-70-g09d2