title: Save command line argument as global variable in C
body: <p>I'm trying to read in two filenames and save them as a global variable in C.   </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;string.h&gt;
  
  char infilename;
  char outfilename;
  
  int main(int argc, const char* argv[]){
  
      strcopy(infilename, argv[1]);
  
  
  return 0;
  }
  </code></pre>
  
  <p>However this does not work. Can someone help me with a really simple problem like this?</p>