Function ds_elt_swap

Function Documentation

status_t ds_elt_swap(void *elt1, void *elt2, size_t elt_size)

Utility function to swap two elements.

If the element is larger than double, a for() loop is used. Otherwise pointers are used.

Parameters:
  • elt1 – Element #1.

  • elt2 – Element #2.

  • elt_size – Size of elements in bytes.

Returns:

status_t