C program code to execute linux-command
First Please excuse me for my english, i'm french.
i'm a newbie in c programation
I write a little C program code with the command system("linux-command");
and now i want to execute a command with a variable like the command printf
ex : printf("hello %s",name);
where name is a variable
i try for example
system ("ifconfig %s", net);
but system don't accept more than 1 argument
is some one can help me please?