Calling OS functions

Is there a way to call an OS function from within a program. More precisely i want to call the functions netstat and netinfo from my program and then pick and format the information for displaying

Regards
/Rene

Look at the C function system();

Just slightly more difficult to use but much more versatile is popen():

<rnielsen@hns.com> wrote in message news:1103_1027639273@inn.qnx.com

Is there a way to call an OS function from within a program. More
precisely i want to call the functions netstat and netinfo from my program

and then pick and format the information for displaying

Regards
/Rene