Hello,
I am creating a program in linux.
I know I can do the following system("ifconfig eth0").
But how can I do this :
system("ifconfig variable")
So the content of variable is eth0
Is this possible or do I have to do this else ?
Thanks
Hello,
I am creating a program in linux.
I know I can do the following system("ifconfig eth0").
But how can I do this :
system("ifconfig variable")
So the content of variable is eth0
Is this possible or do I have to do this else ?
Thanks
Use sprintf to construct a command line in a buffer
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.