NT_GetValueInteger

Function NT_GetValueInteger 

Source
pub unsafe extern "C" fn NT_GetValueInteger(
    value: *const NT_Value,
    last_change: *mut u64,
    v_int: *mut i64,
) -> NT_Bool
Expand description

Returns the int from the NT_Value. If the NT_Value is null, or is assigned to a different type, returns 0.

§Parameters

  • value: NT_Value struct to get the int from.
  • last_change: Returns time in ms since the last change in the value.
  • v_int: Returns the int assigned to the name.

§Returns

1 if successful, or 0 if value is null or not an int.