home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / PTREE10.ZIP / PROCTREE.C < prev    next >
C/C++ Source or Header  |  1990-03-22  |  795b  |  43 lines

  1. /* proctree.c
  2. **
  3. ** Non-Copyright (c) 1990, Christopher Laforet.
  4. ** Released to the public domain.
  5. **
  6. ** Revision History:
  7. **
  8. ** $Header$
  9. **
  10. */
  11.  
  12.  
  13. #include <stdio.h>
  14. #include <stdlib.h>
  15. #include <string.h>
  16. #include <conio.h>
  17. #include <ctype.h>
  18. #include <dos.h>
  19. #include "proctree.h"
  20.  
  21.  
  22.  
  23. struct node **nodes = NULL;
  24. short cur_nodes = 0;
  25. short max_nodes = 0;
  26. short level = 0;
  27. short current = 0;
  28.  
  29.  
  30. int main(void)
  31.     {
  32.     fprintf(stderr,"PROCTREE (v %d.%02d 0f %s): View Process Tree Structure\n",MAJOR_VERSION,MINOR_VERSION,__DATE__);
  33.     fprintf(stderr,"Non-Copyright 1990, Chris Laforet.  Released into the Public Domain.\n\n");
  34.  
  35.     fprintf(stderr,"Loading procedure information...\n\n");
  36.     get_procedures();
  37.     printf("PID 0000\n");
  38.     print_tree(0,0);
  39.     return 0;
  40.     }
  41.  
  42.  
  43.