Preference.
As for myself I usually put the asterisk near the type for single variables and function heads,
Code:
int* p;
void func (int* p);
and the asterisk closer to the identifier when I declare many variables in one statement,
Code:
int *p, i;
SDL_Surface *window, *font, *background;