How To Create a Camera in SDL

Hello everyone, how do I make a camera that follows my player in SDL without the use of OpenGL? I searched up and watched some tutorials but the code never worked for me. A step-by-step code with some explanation would be of big help.

Thanks in advance!

this site has lots of tutorials

https://www.parallelrealities.co.uk/tutorials/tbs/tbs13.php

they show some of their code, but to see it all you have to pay and download it

but I think you can figure it out from what they show

and this is actually the SDL development section
so questions an comments on sdl itself (improvements, bugs, future versions)

your question belongs in the game development section