an alarm system implemented in ANSI C