/* return a pointer to a window number or nil */
#include <jzscreen.h>
extern THEADER g_header;
TWINDOW *wsearch(fnum)
int fnum;
{
  THEADER wptr;

  wptr = g_header;

  while (wptr.first)
    if (wptr.first->number == (char) fnum) return(wptr.first);
    else wptr.first = wptr.first->next;

  return(0);
}

