home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 215.lha / AmyLoad / findwindownode.c < prev    next >
C/C++ Source or Header  |  1996-02-14  |  455b  |  26 lines

  1. #include    <intuition/intuition.h>
  2. #include    "execdef.h"
  3. #include    "intuidef.h"
  4. #include    "windownode.h"
  5.  
  6. #include    "FindWindowNode.proto"
  7.  
  8. extern MinList windowList;
  9.  
  10. WindowNode *
  11. FindWindowNode(window)
  12.     Window *window;
  13. {
  14.     WindowNode *node;
  15.  
  16.     for (node = (WindowNode *)windowList.mlh_Head;
  17.      node->node.mln_Succ;
  18.      node = (WindowNode *)node->node.mln_Succ)
  19.     {
  20.     if (node->window == window)
  21.         return node;
  22.     }
  23.     return NULL;
  24. }
  25.  
  26.