home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c005 / 5.ddi / C / WNVALWIN.C < prev    next >
Encoding:
C/C++ Source or Header  |  1986-08-05  |  741 b   |  35 lines

  1. /**
  2. *
  3. * Name        wnvalwin -- Validate BWINDOW structure.
  4. *
  5. * Synopsis    presult = wnvalwin(pwindow);
  6. *
  7. *        BWINDOW *presult  Pointer to valid BWINDOW
  8. *                  structure, or NIL if failure.
  9. *        BWINDOW *pnode      Pointer to BWINDOW structure to
  10. *                  examine.
  11. *
  12. * Description    This function superficially examines a window structure
  13. *        for validity and returns the result.
  14. *
  15. * Returns    presult       Pointer to valid BWINDOW
  16. *                  structure, or NIL if failure.
  17. *
  18. * Version    3.0  (C)Copyright Blaise Computing Inc. 1986
  19. *
  20. **/
  21.  
  22. #include <string.h>
  23.  
  24. #include <bwindow.h>
  25.  
  26. BWINDOW *wnvalwin(pwindow)
  27. BWINDOW *pwindow;
  28. {
  29.     if (pwindow == NIL
  30.     || strcmp(pwindow->signature,BWIN_SIGN) != 0)
  31.     return NIL;
  32.  
  33.     return pwindow;
  34. }
  35.