C code to find all descendants of a given PID

From: lombardi emanuele <lele_at_mantegna.casaccia.enea.it>
Date: Wed, 02 Dec 1998 12:45:07 +0100 (MET)

I'm here asking for some C help.

I'm not a C programmer: I'm only able to cut & paste others C programs.
   BUT
I need to make a C program which ,given a PID, returns the PIDs of all
its descendants (sons, nephews...) .

I tried to use table(2) but I'm not good enough to make a clean &
working code.

Any help willbe greatly apreciated.

thanks,

Emanuele

-- 
 Emanuele Lombardi
 mail:  AMB-GEM-CLIM ENEA Casaccia
        I-00060 S.M. di Galeria (RM)  ITALY
 mailto:lele_at_mantegna.casaccia.enea.it
 tel	+39 6 30483366 fax	+39 6 30483591
     This transmission was made possible by 100% recycled electrons.
Received on Wed Dec 02 1998 - 11:47:46 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:38 NZDT