Last commit did not work

This commit is contained in:
Tomas Rivera
2026-04-09 18:27:02 +02:00
parent 27b0a35dd0
commit 2835de027c
4 changed files with 16 additions and 1 deletions
+5
View File
@@ -8,6 +8,11 @@ int compareString(const void *a, const void *b) {
const char *str2 = *(const char **)b;
return strcmp(str1, str2); // strcmp returns <0, 0, >0
}
int reverseCompareString(const void *a, const void *b) {
const char *str1 = *(const char **)a;
const char *str2 = *(const char **)b;
return -1*strcmp(str1, str2);
}
void getCurrentTime(int *hour, int *minute, int *second) {
time_t now = time(NULL); // Get current time in seconds since epoch