]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - avr/getopt-min.c
Add copyright notice
[z180-stamp.git] / avr / getopt-min.c
index 8e5dd6c3e026070ec3270808eea1ea71d7b4e02b..f5ad912f281e1a73085160f6282e9754e04d1bea 100644 (file)
@@ -1,6 +1,3 @@
-#include "common.h"
-
-
 /*
  *     Minimum getopt, original version was:
  */
@@ -13,7 +10,8 @@
 */
 /* $Id: getopt.c,v 1.2 1992/12/07 11:12:52 nickc Exp $ */
 
-#include       <string.h>
+#include "common.h"            /* definition of FLASH */
+#include <string.h>
 
 int    optind = 1;                     /* next argv[] index */
 char *optarg;          /* option parameter if any */
@@ -40,7 +38,7 @@ getopt(                               /* returns letter, '?', EOF */
                   )
                        return -1;
        }
-       
+
        c = argv[optind][sp];           /* option letter */
        osp = sp++;                     /* get ready for next letter */
 
@@ -72,4 +70,3 @@ getopt(                               /* returns letter, '?', EOF */
 
        return c;
 }
-