ANSI C is fun!