this is not about SDL, it's just an easy way to open a window, import assets, handle events and reproduce sound.
Would you like to see a tutorial about how to do that in c89 compatible with windows, mac, Gnu/linux, consoles, etc? it'd take half million lines and 3 years.
These tutorials exist and are really well thought out here: https://lazyfoo.net/tutorials/SDL/