X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Foptions.c;h=8497f840086d21635425d4179211de7b8a19a5ca;hb=de62d4d97943ed7033f48bdbcaf06f67952f86fe;hp=ebe1b93d690554290941953d1f0c5908673b3a33;hpb=f26c147b7e348a8e0b91364f4a4d100dc1832467;p=yaz-moved-to-github.git diff --git a/util/options.c b/util/options.c index ebe1b93..8497f84 100644 --- a/util/options.c +++ b/util/options.c @@ -1,10 +1,22 @@ /* - * Copyright (C) 1994, Index Data I/S - * All rights reserved. + * Copyright (c) 1995, Index Data + * See the file LICENSE for details. * Sebastian Hammer, Adam Dickmeiss * * $Log: options.c,v $ - * Revision 1.1 1995-03-27 08:35:18 quinn + * Revision 1.5 1995-12-06 13:00:19 adam + * Minus alone not treated as an option. + * + * Revision 1.4 1995/09/29 17:12:35 quinn + * Smallish + * + * Revision 1.3 1995/09/27 15:03:03 quinn + * Modified function heads & prototypes. + * + * Revision 1.2 1995/05/16 08:51:13 quinn + * License, documentation, and memory fixes + * + * Revision 1.1 1995/03/27 08:35:18 quinn * Created util library * Added memory debugging module. Imported options-manager * @@ -30,7 +42,7 @@ int options (const char *desc, char **argv, int argc, char **arg) return -2; if (arg_off == 0) { - if (argv[arg_no][0] != '-') + if (argv[arg_no][0] != '-' || argv[arg_no][1] == '\0') { *arg = argv[arg_no++]; return 0;