Finding immediate child process using /proc filesystem

From: EC (lec_at_mailasia.com)
Date: 09/30/04


Date: 30 Sep 2004 07:29:00 -0700

Hi,
    is it possible to find the immediate child processes using /proc
filesystem? I know in the /proc/<pid>/status file can find the ppid,
by scanning through the whole /proc I may find immediate child
processes, but I think it is very not efficient. Is there a better way
to do it?

Thanks and regards,
EC