ncurses based alarm clock written in c