mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-08 09:36:02 -05:00
20 lines
310 B
C
20 lines
310 B
C
/*
|
|
* dsd_comp.c
|
|
*
|
|
* Created on: Apr 8, 2016
|
|
* Author: f4exb
|
|
*/
|
|
|
|
#include "dsd_comp.h"
|
|
|
|
int comp(const void *a, const void *b)
|
|
{
|
|
if (*((const int *) a) == *((const int *) b))
|
|
return 0;
|
|
else if (*((const int *) a) < *((const int *) b))
|
|
return -1;
|
|
else
|
|
return 1;
|
|
}
|
|
|