Created
November 12, 2016 18:34
-
-
Save dyigitpolat/69c101bd40c5642f7e9f5bce46c5a65a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int compare( const void* a, const void* b) | |
{ | |
TYPE aval; | |
TYPE bval; | |
aval = *( TYPE*)a; | |
bval = *( TYPE*)b; | |
if( aval > bval) | |
{ | |
return 1; | |
} | |
else if( aval < bval) | |
{ | |
return -1; | |
} | |
else | |
{ | |
return 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment