RPR mergesort

From CockosWiki

Jump to: navigation, search

Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR mergesort
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR mergesort

Contents

__mergesort()

void __mergesort(void *base, size_t nmemb, size_t size, int (*compar)

__mergesort is a stable sorting function with an API similar to qsort(). HOWEVER, it requires some temporary space, equal to the size of the data being sorted, so you can pass it as the last parameter, or NULL and it will allocate and free space internally.

Parameters

void *base,
size_t nmemb,
size_t size,
int (*compar

Returns

void 

Example


See Also


Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR mergesort
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR mergesort