SPQLINIT() function performs a one-time initialization that enables the SPQL library
to function. For
this reason, you must call SPQLINIT() function at least once to activate an SPQL program.
Do not make other SPQL API calls before calling this function. If you do, the results
are unpredictable. When SPQLINIT() function successfully completes, you can safely
proceed to use the SPQL API in a multi-threaded context.
Note: SPQLINIT() is not a thread-safe
function. Call it only within a single-threaded context in your application.
Alternatively, call it within an application-controlled mutex region.
Returns:
0 if successful; SPQL_INITFAILED if the initialization fails.