1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-09-18 19:06:34 -04:00
sdrangel/dsd/dsd_comp.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;
}