c program to print the contents of ifconfig

February 27, 2012 at 02:51:12
Specs: Linux x86_64
need to get the contents of ifconfig using C program.

See More: c program to print the contents of ifconfig

Report •

#1
February 27, 2012 at 07:35:25
One way is to open a pipe to the command. This link describes it:

http://www.computing.net/answers/pr...

Simply use this string in the example:

char *com_str="ifconfig";


Report •
Related Solutions


Ask Question