diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-06-26 01:11:54 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-06-26 01:11:54 +0200 |
commit | 225c4edb8a20b56d404a14050a8770801dac2976 (patch) | |
tree | ae56ff4160ca712c89ac0614a26a54cf9146dc57 | |
parent | complete map structure (diff) | |
download | argparser-225c4edb8a20b56d404a14050a8770801dac2976.tar.gz argparser-225c4edb8a20b56d404a14050a8770801dac2976.tar.bz2 argparser-225c4edb8a20b56d404a14050a8770801dac2976.tar.xz |
move includes into new .h file
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/argparser.c | 4 | ||||
-rw-r--r-- | src/argparser.h | 21 |
2 files changed, 22 insertions, 3 deletions
diff --git a/src/argparser.c b/src/argparser.c index 37180d4..fcf6edd 100644 --- a/src/argparser.c +++ b/src/argparser.c @@ -16,9 +16,7 @@ * 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> -#include <stdarg.h> +#include "argparser.h" /* Code style constants */ diff --git a/src/argparser.h b/src/argparser.h new file mode 100644 index 0000000..288c585 --- /dev/null +++ b/src/argparser.h @@ -0,0 +1,21 @@ +/** + * 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> +#include <stdarg.h> |