This commit is contained in:
Emmanuel Srivastava
2024-12-09 11:56:59 +01:00
parent d8315cea20
commit c0da6de2c2
5 changed files with 88 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
#include <stdio.h>
#include <stdlib.h>
#include "lightness.h"
int lightness(void) {
if (time(NULL)%2) {
return LIGHT;
} else {
return DARK;
}
}