A real-time digital clock built in pure C for terminal use. Includes keyboard shortcuts, blinking display, and 12/24-hour format switching.
- Real-time clock
- 12/24 hour toggle (press
H) - Exit any time (press
Q) - Blinking colon
- Clean terminal output
- Cross-platform (Windows/Linux)
time.hfor system timeconio.h(Windows) /termios.h(Linux) for key handling- Loops, system calls
- Conditional compilation for cross-platform support
gcc main.c -o digital_clock
./digital_clockgcc main.c -o digital_clock
./digital_clockMade with ❤️ in C by Achal C.