to C again (C++ is stoopid)