99 ways to program a hex, Part 3: C89 in K&R style