declare optind
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 30 Apr 1993 14:12:49 +0000 (06:12 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 30 Apr 1993 14:12:49 +0000 (06:12 -0800)
SCCS-vsn: usr.bin/printf/printf.c 5.14

usr/src/usr.bin/printf/printf.c

index 1db5e11..6375c10 100644 (file)
@@ -14,7 +14,7 @@ char copyright[] =
 #endif
 
 #ifndef lint
 #endif
 
 #ifndef lint
-static char sccsid[] = "@(#)printf.c   5.13 (Berkeley) %G%";
+static char sccsid[] = "@(#)printf.c   5.14 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/types.h>
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -77,6 +77,7 @@ main(argc, argv)
        int argc;
        char *argv[];
 {
        int argc;
        char *argv[];
 {
+       extern int optind;
        static char *skip1, *skip2;
        int ch, end, fieldwidth, precision;
        char convch, nextch, *format, *fmt, *start;
        static char *skip1, *skip2;
        int ch, end, fieldwidth, precision;
        char convch, nextch, *format, *fmt, *start;