#define iterate(i, n) for (i = 0; i < n; ++i)
#define print_int_arr(arr, i, n) for (i = 0; i < n; ++i) printf("%d, ", arr[i]);
int cmp (const void *a, const void *b) {
return (*(const int *)a > *(const int *)b) - (*(const int *)a < *(const int *)b);
}
int *ptr = malloc(sizeof(int) * count);
qsort(ptr, count, sizeof(int), cmp);
char *test = malloc(sizeof(char) * 10);
int year = 2018;
sprintf(test, "12.01.%d", year);