system calls in C

Hello,

how would i be able to call ps in C programming?

thanks,

---------- Post updated at 01:39 AM ---------- Previous update was at 01:31 AM ----------

here's the complete system call, ps -o pid -p %d, getpit()

What operating system are you using?

its a sun. I figured it out, it's just system("name");

Thanks!