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

  1. /**
  2. *
  3. * Name        wnvalnod -- Validate window node.
  4. *
  5. * Synopsis    presult = wnvalnod(pnode);
  6. *
  7. *        WIN_NODE *presult Pointer to valid WIN_NODE
  8. *                  structure, or NIL if failure.
  9. *        WIN_NODE *pnode   Pointer to WIN_NODE structure to
  10. *                  examine.
  11. *
  12. * Description    This function superficially examines a window node
  13. *        structure for validity and returns the result.
  14. *
  15. * Returns    presult       Pointer to valid WIN_NODE
  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. WIN_NODE *wnvalnod(pnode)
  27. WIN_NODE *pnode;
  28. {
  29.     if (pnode == NIL              /* Make sure it's not NIL.      */
  30.                       /* Check signature.          */
  31.     || strcmp(pnode->signature,BNODE_SIGN) != 0)
  32.     return NIL;
  33.  
  34.     return pnode;
  35. }
  36.