License along with the GNU C Library; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-\f
+
/* This tells Alpha OSF/1 not to define a getopt prototype in <stdio.h>.
Ditto for AIX 3.2 and <stdlib.h>. */
#ifndef _NO_PROTO
#endif
#include <stdio.h>
+#include <strings.h>
/* Comment out all this code if we are using the GNU C Library, and are not
actually compiling the library itself. This code is part of the GNU C
/* Value of POSIXLY_CORRECT environment variable. */
static char *posixly_correct;
-\f
+
#ifdef __GNU_LIBRARY__
/* We want to avoid inclusion of string.h with non-GNU libraries
because there are many ways it can cause trouble.
#endif /* __GNUC__ */
#endif /* not __GNU_LIBRARY__ */
-\f
+
/* Handle permutation of arguments. */
/* Describe the part of ARGV that contains non-options that have
return optstring;
}
-\f
+
/* Scan elements of ARGV (whose length is ARGC) for option characters
given in OPTSTRING.
else
{
if (opterr)
+ {
if (argv[optind - 1][1] == '-')
/* --option */
fprintf(stderr,
fprintf(stderr,
_("%s: option `%c%s' doesn't allow an argument\n"),
argv[0], argv[optind - 1][0], pfound->name);
+ }
nextchar += strlen(nextchar);
}
#endif /* Not ELIDE_CODE. */
-\f
+
#ifdef TEST
/* Compile with -DTEST to make an executable for use in testing