SDL_ttf > Functions > General


void TTF_SetError(const char *fmt, ...)

This is the same as SDL_SetError, which sets the error string which may be fetched with TTF_GetError (or SDL_GetError). This functions acts like printf, except that it is limited to SDL_ERRBUFIZE(1024) chars in length. It only accepts the following format types: %s, %d, %f, %p. No variations are supported, like %.2f would not work. For any more specifics read the SDL docs.

int myfunc(int i) {
    TTF_SetError("myfunc is not implemented! %d was passed in.",i);

See Also


SDL_ttf_copy/Functions/General/TTF_SetError (last edited 2009-02-25 23:12:18 by sign-4d0949c8)