Ported SDL_Tobchen from cpp to c.