home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / prgramer / unix / emx / test / pid.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-02  |  229 b   |  16 lines

  1. /* pid.c (emx+gcc) */
  2.  
  3. #include <stdio.h>
  4. #include <process.h>
  5.  
  6. int main (void)
  7. {
  8.   int pid, ppid;
  9.  
  10.   pid = getpid ();
  11.   ppid = getppid ();
  12.   printf ("pid=%d\n", pid);
  13.   printf ("ppid=%d\n", ppid);
  14.   return (0);
  15. }
  16.