1 | /* |
1 | /* |
2 | getopt.c - Enhanced implementation of BSD getopt(1) |
2 | getopt.c - Enhanced implementation of BSD getopt(1) |
3 | Copyright (c) 1997, 1998, 1999, 2000 Frodo Looijaard <frodol@dds.nl> |
3 | Copyright (c) 1997-2005 Frodo Looijaard <frodo@frodo.looijaard.name> |
4 | |
4 | |
5 | This program is free software; you can redistribute it and/or modify |
5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by |
6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or |
7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. |
8 | (at your option) any later version. |
… | |
… | |
33 | * Version 1.0.6: Tue Jun 27 2000 |
33 | * Version 1.0.6: Tue Jun 27 2000 |
34 | * No important changes |
34 | * No important changes |
35 | * Version 1.1.0: Tue Jun 30 2000 |
35 | * Version 1.1.0: Tue Jun 30 2000 |
36 | * Added NLS support (partly written by Arkadiusz Mi<B6>kiewicz |
36 | * Added NLS support (partly written by Arkadiusz Mi<B6>kiewicz |
37 | * <misiek@pld.org.pl>) |
37 | * <misiek@pld.org.pl>) |
|
|
38 | * Version 1.1.4: Mon Nov 7 2005 |
|
|
39 | * Fixed a few type's in the manpage |
38 | */ |
40 | */ |
39 | |
41 | |
40 | #include <stdio.h> |
42 | #include <stdio.h> |
41 | #include <stdlib.h> |
43 | #include <stdlib.h> |
42 | #include <string.h> |
44 | #include <string.h> |
… | |
… | |
439 | exit(4); |
441 | exit(4); |
440 | case 'u': |
442 | case 'u': |
441 | quote=0; |
443 | quote=0; |
442 | break; |
444 | break; |
443 | case 'V': |
445 | case 'V': |
444 | printf(_("getopt (enhanced) 1.1.3\n")); |
446 | printf(_("getopt (enhanced) 1.1.4\n")); |
445 | exit(0); |
447 | exit(0); |
446 | case '?': |
448 | case '?': |
447 | case ':': |
449 | case ':': |
448 | parse_error(NULL); |
450 | parse_error(NULL); |
449 | default: |
451 | default: |