Vuo 2.4.4
Loading...
Searching...
No Matches
Functions
VuoSort.c File Reference

Description

VuoSort implementation.

Definition in file VuoSort.c.

Go to the source code of this file.

Functions

static int compareFloats (const void *a, const void *b)
 Helper function for VuoSort_sortArrayByOtherArray().
 
void VuoSort_sortArrayByOtherArray (void *array, unsigned long elemCount, unsigned long elemSize, VuoIndexedFloat *other)
 Puts both array and other in ascending order of other's elements' values.
 

Function Documentation

◆ compareFloats()

static int compareFloats ( const void *  a,
const void *  b 
)
static

Helper function for VuoSort_sortArrayByOtherArray().

Returns a negative, zero, or positive result depending on whether the value of a is less then, equal to, or greater than the value of b.

Definition at line 26 of file VuoSort.c.

◆ VuoSort_sortArrayByOtherArray()

void VuoSort_sortArrayByOtherArray ( void *  array,
unsigned long  elemCount,
unsigned long  elemSize,
VuoIndexedFloat other 
)

Puts both array and other in ascending order of other's elements' values.

Definition at line 37 of file VuoSort.c.