process status

hello everybody!!
i want to post a question!
is there any way to get process status using C commands?
To be more specific, i want to know whether a process is running or is stop or killed.

thanks in advance!

AFAIK there's no standardized interface for getting that information as it is platform-specific. AIX uses the /proc filesystem while HPUX uses the pstat() system call interface.

If you have the pid of the process, you can use kill system call, send signal 0 to the pid to check if it is alive.

:D:b:thanx a loT!!