C ropes implementation