[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.1.5 TTF_SetError

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

This is really a defined macro for 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 flags, precisions, field widths, nor length modifiers, are supported in the format. For any more specifics read the SDL docs.

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

See Also:
3.1.6 TTF_GetError



This document was generated on November, 13 2009 using texi2html