Vec_set(camera.x, entity.x)

I also suggest you read the workshops, and explore the samples to try and grasp the basics.