Last active
May 3, 2020 21:27
-
-
Save domiyanyue/b3bc2df0e7405cc91abbdc23c4b7f622 to your computer and use it in GitHub Desktop.
example header guard util
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
#include "time.h" | |
bool isDayTime(Time d); |
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
#include "util.h" | |
bool isDayTime(Time d) { | |
return d.hour <= 18 && d.hour >= 7; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment