/* Get the implementation dependent name of a joystick  */
const char* SDL_JoystickName(int device_index)
/* Get the implementation dependent name of a joystick  */
const char* SDL_JoystickName(int device_index)
{
	if ( (device_index < 0) || (device_index >= SDL_numjoysticks) ) {
		SDL_SetError("There are %d joysticks available",
		             SDL_numjoysticks);
		return(NULL);
	}
	return(SDL_SYS_JoystickName(device_index));
}