Alarm System implemented in ANSI C