This routine verifies that the type and version associated with a global are compatible with the active set of routines. Both the type and version are unsigned characters passed by value. The syntax is:
gtm_ac_verify(type,ver)
Example:
#include <descrip.h>
#include <ssdef.h>
#define MYAPP$_WRONGVERSION 20406080 /* User condition code for version mismatch */
int gtm_ac_verify(type,ver)
unsigned char type,ver;
{if (type == 3)
{
if (ver > 2) /* version checking may be more complex */
{
return SS$_NORMAL;
}
}
return MYAPP$_WRONGVERSION;
}