Just kidding! Turns out snprintf actually protects you against memory errors. Who would have thought? We're keeping it. Forward declare to stop warnings about implicit declaration.
Formatting fixes in the testing code. I'm considering switching to spaces.