Calling an OS function

To a program I need to add information about the network, and I see that the os utilitys netstat and netinfo can give me the the answers I need, but how can I call these functions from within my program, and how do I get the results ?

I am running QNX 4.25 and use the Watcom 10.6 compiler


popen() is your friend.