rive in c