Port 22

Boffins carve up C so code can be converted to Rust