Okay, I'm working within ansi C and Sun Solaris 7. I have a problem with zombies. I'm currently using the kill command to return the status of a process. How do I check for Zombie PIDs or the right function to return its PID from within a C program?

FYI (maybe helpful), from the GNU ps manpage:

One simple way you can check for Zombie PIDs within a C program by calling the ps command with a system or exec call. Or you can find the source code for ps and take a look at how they do it and use the C code in the ps source to develop your own routine.