Function arr32_permute

Function Documentation

void arr32_permute(uint32_t *arr, size_t size, size_t start, void (*fp)(uint32_t *elt))

Generate permutations from elements within an array.

From element “start” to element “size” - 1.

Parameters:
  • arr – The array of integers to permute.

  • size – # elements in array.

  • start – Start position in array to permute

  • fp – A callback which each permutation is handed to in turn.