X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fargs.c;h=99410f43cdf3eb8adf6d8c09ff7c9ca7be7b0cd1;hb=refs%2Fheads%2Frenders;hp=ac3fb67dc7d33967e395f28f859c174f16334193;hpb=9f3ca6bf02300e3dc72e3c2085a8e35aa9242678;p=flatwaifu.git diff --git a/src/args.c b/src/args.c index ac3fb67..99410f4 100644 --- a/src/args.c +++ b/src/args.c @@ -1,3 +1,18 @@ +/* Copyright (C) 2020 SovietPony + * + * 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, version 3 of the License ONLY. + * + * 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 . + */ + #include "args.h" #include "system.h" #include "error.h" @@ -5,13 +20,13 @@ #include void ARG_parse (int argc, char **argv, int n, const cfg_t **list) { + int i, j; + char *key; + const cfg_t *c; assert(argc >= 0); assert(argv != NULL); assert(n >= 0); assert(list != NULL); - int i, j; - char *key; - const cfg_t *c; for (i = 1; i < argc; i++) { if (argv[i][0] == '-' && argv[i][1] != 0) { j = 0;