Created
March 14, 2017 03:11
-
-
Save Jarvvski/47b04a09c1c3d433de9428ff15893471 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 bSearchCmp (const void * a, const void * b) { | |
| Date *_dateA = a; | |
| Date *_dateB = b; | |
| if (_dateA->year == _dateB->year && _dateA->month == _dateB->month && | |
| _dateA->day == _dateB->day) | |
| return 0; | |
| else if (_dateA->year < _dateB->year) | |
| return -1; | |
| else return 1; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment