title: How do I execute an external program within C code in Linux with arguments?
body: <p>I want to execute another program within C code.
  For example, I want to execute a command</p>
  
  <pre><code>./foo 1 2 3
  </code></pre>
  
  <p><code>foo</code> is the program which exists in the same folder, and <code>1 2 3</code> are arguments.
  <code>foo</code> program creates a file which will be used in my code.</p>
  
  <p>How do I do this?</p>