home *** CD-ROM | disk | FTP | other *** search
- /**
- *
- * Name MNVALMN0 -- Validate BMENU structure.
- *
- * Synopsis presult = mnvalmn0(pmenu,signature);
- *
- * BMENU *presult Pointer to valid BMENU
- * structure, or NIL if failure.
- * BMENU *pmenu Pointer to BMENU structure to
- * examine.
- * unsigned signature
- * Signature word expected by calling
- * function.
- *
- * Description This function superficially examines a menu structure
- * for validity and returns the result.
- *
- * This function is invoked by the mnvalmnu() macro, which
- * provides the signature value. The same signature value
- * is provided to MNCREAT0 by the mncreate() macro. By
- * using these macros, all menu functions provide signature
- * values for comparison. In this way incompatible
- * versions of BMENU.H can be detected at run time.
- *
- * Returns presult Pointer to valid BMENU
- * structure, or NIL if failure.
- *
- * Version 6.00 (C)Copyright Blaise Computing Inc. 1987-1989
- *
- **/
-
- #include <bmenu.h>
-
- BMENU *mnvalmn0(pmenu,signature)
- BMENU *pmenu;
- unsigned signature;
- {
- if (pmenu == NIL || signature != pmenu->signature)
- return (NIL);
-
- return pmenu;
- }