LM_INIT(3)

NAME
lm_init - initialize the FLEXlm client routines

SYNOPSIS
int lm_init(vendor_id,vendor_key,job_id)
char *vendorid;
VENDORCODE2 *vendor_key;
LM_HANDLE **job_id;

DESCRIPTION
lm_init() initializes internal data in the FLEXlm client library. This call is required in all FLEXlm client code, and must appear before any other calls to FLEXlm functions.

lm_init() is identical to the Software License Working Group function ls_init().

RETURN VALUE
lm_init() returns the value of _lm_errno , which should be checked for a successful initialization. In particular, be sure that lm_init() does not return DEMOKIT , NOKEYDATA , or BADKEYDATA ; if it does, then your software will expire at some point in the future.

In addition, lm_init() returns a handle (job_id) if job_id is specified as a non-NULL value. This handle is an opaque data item; the only thing the caller should do with this handle is pass it back to other routines which require a handle. As of FLEXlm v2.2, no other calls use this handle.