Converted K&R func style to ANSI and placed prototypes into header file.