title: how to assign argc and argv to global variables?
body: <p>Basically I want to pass main's <code>argc</code> and <code>*argv[]</code> to global variables, but am getting:</p>
  
  <blockquote>
    <p>error: <code>args</code> has an incomplete type <code>char *[]</code>;</p>
  </blockquote>
  
  <p>code:</p>
  
  <pre><code>int argi;
  char *args[];
  
  int main(int argc, char *argv[]){
      argi = argc;
      args = argv;
      // blah bah blah
  }
  
  int foo(){
      printf("argv[0]: %s\n", args[0]);
      // ayy what it is.
  }
  </code></pre>
  
  <p>Note: for some reason, I don't want to do <code>foo(int argc, char *argv[])</code> and then in main calling it as <code>foo(argc, argv);</code></p>
  
  <p>So precisely said, I need to assign main's <code>argc</code> and <code>argv</code> to my global variables.</p>