Pointless C++ification
Pure C99 version for good measure