DtvLong dal_dbi_get_lck (idn, tab, usr)

Returns the name of the user who initiated locking of the record passed.

Input Parameters Significance
DtvLong idn ident number of the record
char *tab name of the original table of the record

Output Parameters Significance
char *usr name of the user of the lock

Return Code Significance
0 no error
1 no lock entry found
-1 data base error reading locking entries

In the calling function have to be allocated 21 bytes storage place.