diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-06-18 20:37:58 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-06-18 20:37:58 +0200 |
commit | 9873efabfba0bfa0bccc745dbc9eb5749a2022aa (patch) | |
tree | e6d853baa90fdb42aa69bf19e88b28bf5a87a72e /src/argparser.c | |
parent | complete bash version (diff) | |
download | argparser-9873efabfba0bfa0bccc745dbc9eb5749a2022aa.tar.gz argparser-9873efabfba0bfa0bccc745dbc9eb5749a2022aa.tar.bz2 argparser-9873efabfba0bfa0bccc745dbc9eb5749a2022aa.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/argparser.c')
-rw-r--r-- | src/argparser.c | 38 |
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; +} + |