Created
March 14, 2017 03:15
-
-
Save Jarvvski/93ccae7ea210592e29d1c1709ac91119 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