Mix_GetError

Name

Mix_GetError -- Gets an SDL_Error.

Synopsis

#include "SDL_mixer.h"

char *Mix_GetError()

Description

Mix_GetError is the same as SDL_GetError, which returns the last error set as a string which you may use to tell the user what happened when an error status has been returned from an SDL_mixer function call.

Return Value

Returns a char pointer (string) containing a human readable version or the reason for the last error that occurred.

Example

printf("What? An error? Really? Here it is: %s", Mix_GetError());

See Also

Mix_SetError

Mix_GetError (last edited 2008-04-17 08:18:34 by localhost)