Turn scrc32.cpp into C