Using SDL in a function

I’m working on a little program that will pop up a screen
once in a while. But the SDL-window should always be open.
So from my main() I will ocationally call sdl_stuff() where
a window is created, images are loaded, displayed and then
everything is realeased from meme again, and the windows

But I cannot get this working properly. My sdl_stuff() is
mainly a rip off of the HTML docs. I assume I am exiting
the wrong way or…whatever.

The thing is, first time sdl_stuff() is called, it works as
expected, and I close the windows. Second time the
surface/window is opened, but noting is loaded into it; it
stays all black =.–

-Stephan /
/ tisprut productions [tm]