title: How to pass arguments to a bash script in my c program via popen()?
body: <p>In my c program, I want to launch a script by popen(). </p>
  
  <p>like this:
  char mimetype[256];</p>
  
  <p>//give mimetype a value</p>
  
  <p>popen("xdg-mime query default some-mime-type", "r");</p>
  
  <p>Is it possible to pass "some-mime-type" as an argument from c program to the bash command?</p>
  
  <p>Great thanks!</p>
  
  <p>Amanda</p>