Initializing the GT.M Run-time Environment

Placing GTM$INIT in a Shareable Image

The GTM$INIT library routine initializes the GT.M run-time environment. A process using the GT.M database functions must call the GTM$INIT routine first. GTM$INIT does not accept arguments. GT.M ignores multiple invocations of GTM$INIT except the first time.

The gtm_init library routine initializes the GT.M run-time environment. A process using the GT.M database functions must call the gtm_init routine first; GT.M ignores invocations of gtm_init after the first. gtm_init does not accept arguments.

Example:

	$DESCRIPTOR(gname,"A") ;
	$DESCRIPTOR(subscript,"1") ;
	$DESCRIPTOR(data,"Data of A") ;
	gtm$init();
	gtm$kill(GTMI$_GLOBAL, &gname) ;
	gtm$put(GTMI$_GLOBAL, &data, &gname, &subscript) ; 
	

This VMS C example invokes GTM$INIT before invoking GTM$KILL and GTM$PUT.

		status=gtm_init();status=gtm_kill (gname);status=gtm_put(gname,gdata);
	

This C example invokes gtm_init before invoking gtm_kill and gtm_put.