LM_GET_ATTR(3)

NAME
lm_get_attr, lm_set_attr - get and set FLEXlm attributes

SYNOPSIS
lm_get_attr(key,valuep)
int key;
short *valuep;

lm_set_attr(key,value)
int key;
int value;

DESCRIPTION
lm_get_attr() retrieves the value of a FLEXlm attribute. Symbolic names for the key argument are in the include file "lm_attr.h". The data items represented by the different keys are not all of type short; for data items with a different type, you must cast the valuep argument (which is a pointer to the location into which the return value is to be placed) into a short * (see the examples below). The types of the different data items are listed in "lm_attr.h".

lm_set_attr() sets the value of a FLEXlm attribute. The legal key values and their types are the same as for lm_get_attr. For data items which are not of type int, you must cast the value argument to int (see the examples below).

EXAMPLES
To set the value of the retry count (an integer) to 3:
	lm_set_attr(LM_A_RETRY_COUNT, 3);

To retrieve the value of the retry count into the integer variable n:
	lm_get_attr(LM_A_RETRY_COUNT, (short *)(&n));

To set the location of the license file (a char*):
	lm_set_attr(LM_A_LICENSE_FILE, (int) "/usr/local/foo.dat");

To retrieve the value of the license file into the char* variable s:
	lm_get_attr(LM_A_LICENSE_FILE, (short *)&s);

SEE ALSO
lm_setup(3).