SDL Window Coordinates

Is there a portable way to get SDL window coordinates(I just don’t want the
window to get centered every time it resizes, so I’ll just use SDL_setenv
with SDL_VIDEO_WINDOW_POS with these coordinates before
calling SLD_SetVideoMode)?

If not portable, I’m interested in ways to do this under mac(cocoa),
windows and linux(x11)