Is it possible to put arguments in a systems call?
something like
system(\"rm %s %s\", string1, string2)
The prototype for the system function is:
system
int system(const char *command);
so, no. But, how about:
snprintf(buffer, sizeof(buffer), "rm %s %s", target1, target2); system(buffer);