BYTE *value; int locatorLength; FNC_LobLength lobLength; FNC_TblOpHandle_t *Handle; int i; // column index int null_ind; .... // read locator FNC_TblOpGetAttributeByNdx(Handle, i, (void **) &value, &null_ind, &locatorLength); if (null_ind != -1) // get LOB length lobLength = FNC_GetLobLength_CL(value);