title: what is the function that acts like SYSTEM(const char *) and takes no const char but a dynamic produced query
body: <p>i want to write a program that will create a file  by passing the string to the shell at  program executes . this can be done by the system()
   but  i want  to use this function , for many arguments in a loop . using system(char *) its giving error . is there  any other way          </p>
  
  <p>i tried a lot     plz somebody  help me   .   </p>