21 #if defined(__clang_analyzer__) 22 #define SDL_DISABLE_ANALYZE_MACROS 1 25 #include "../SDL_internal.h" 31 #if !defined(HAVE_VSSCANF) || !defined(HAVE_STRTOL) || !defined(HAVE_STRTOUL) || !defined(HAVE_STRTOLL) || !defined(HAVE_STRTOULL) || !defined(HAVE_STRTOD) 32 #define SDL_isupperhex(X) (((X) >= 'A') && ((X) <= 'F')) 33 #define SDL_islowerhex(X) (((X) >= 'a') && ((X) <= 'f')) 36 #define UTF8_IsLeadByte(c) ((c) >= 0xC0 && (c) <= 0xF4) 37 #define UTF8_IsTrailingByte(c) ((c) >= 0x80 && (c) <= 0xBF) 41 if (c >= 0xC0 && c <= 0xDF)
43 else if (c >= 0xE0 && c <= 0xEF)
45 else if (c >= 0xF0 && c <= 0xF4)
51 #if !defined(HAVE_VSSCANF) || !defined(HAVE_STRTOL) 55 const char *textstart =
text;
63 if (radix == 16 &&
SDL_strncmp(text,
"0x", 2) == 0) {
71 v = 10 + (*text -
'A');
73 v = 10 + (*text -
'a');
81 if (valuep && text > textstart) {
82 if (negative && value) {
88 return (text - textstart);
92 #if !defined(HAVE_VSSCANF) || !defined(HAVE_STRTOUL) || !defined(HAVE_STRTOD) 96 const char *textstart =
text;
97 unsigned long value = 0;
99 if (radix == 16 &&
SDL_strncmp(text,
"0x", 2) == 0) {
107 v = 10 + (*text -
'A');
109 v = 10 + (*text -
'a');
117 if (valuep && text > textstart) {
120 return (text - textstart);
128 const char *textstart =
text;
131 if (radix == 16 &&
SDL_strncmp(text,
"0x", 2) == 0) {
139 v = 10 + (*text -
'A');
141 v = 10 + (*text -
'a');
149 if (valuep && text > textstart) {
152 return (text - textstart);
156 #if !defined(HAVE_VSSCANF) || !defined(HAVE_STRTOLL) 160 const char *textstart =
text;
168 if (radix == 16 &&
SDL_strncmp(text,
"0x", 2) == 0) {
176 v = 10 + (*text -
'A');
178 v = 10 + (*text -
'a');
186 if (valuep && text > textstart) {
187 if (negative && value) {
193 return (text - textstart);
197 #if !defined(HAVE_VSSCANF) || !defined(HAVE_STRTOULL) 201 const char *textstart =
text;
204 if (radix == 16 &&
SDL_strncmp(text,
"0x", 2) == 0) {
212 v = 10 + (*text -
'A');
214 v = 10 + (*text -
'a');
222 if (valuep && text > textstart) {
225 return (text - textstart);
229 #if !defined(HAVE_VSSCANF) || !defined(HAVE_STRTOD) 233 const char *textstart =
text;
234 unsigned long lvalue = 0;
248 lvalue = *text -
'0';
249 value += (double) lvalue / mult;
254 if (valuep && text > textstart) {
255 if (negative && value) {
261 return (text - textstart);
268 #if defined(HAVE_MEMSET) 269 return memset(dst, c, len);
274 Uint32 value4 = (c | (c << 8) | (c << 16) | (c << 24));
280 while ((intptr_t)dstp1 & 0x3) {
295 dstp1 = (
Uint8 *) dstp4;
316 return __builtin_memcpy(dst, src, len);
317 #elif defined(HAVE_MEMCPY) 318 return memcpy(dst, src, len);
319 #elif defined(HAVE_BCOPY) 320 bcopy(src, dst, len);
327 if (((intptr_t)src & 0x3) || ((intptr_t)dst & 0x3)) {
336 size_t left = (len % 4);
338 Uint8 *srcp1, *dstp1;
347 srcp1 = (
Uint8 *) srcp4;
348 dstp1 = (
Uint8 *) dstp4;
365 #if defined(HAVE_MEMMOVE) 368 char *srcp = (
char *) src;
369 char *dstp = (
char *) dst;
389 #if defined(HAVE_MEMCMP) 390 return memcmp(s1, s2, len);
392 char *s1p = (
char *) s1;
393 char *s2p = (
char *) s2;
396 return (*s1p - *s2p);
408 #if defined(HAVE_STRLEN) 409 return strlen(
string);
422 #if defined(HAVE_WCSLEN) 423 return wcslen(
string);
436 #if defined(HAVE_WCSLCPY) 437 return wcslcpy(dst, src, maxlen);
452 #if defined(HAVE_WCSLCAT) 453 return wcslcat(dst, src, maxlen);
457 if (dstlen < maxlen) {
460 return dstlen + srclen;
467 #if defined(HAVE_WCSCMP) 468 return wcscmp(str1, str2);
470 while (*str1 && *str2) {
476 return (
int)(*str1 - *str2);
483 #if defined(HAVE_STRLCPY) 484 return strlcpy(dst, src, maxlen);
500 size_t bytes =
SDL_min(src_bytes, dst_bytes - 1);
502 char trailing_bytes = 0;
505 unsigned char c = (
unsigned char)src[bytes - 1];
510 for (i = bytes - 1; i != 0; --
i)
512 c = (
unsigned char)src[i];
516 if (bytes - i != trailing_bytes + 1)
536 while ((ch = *(p++))) {
538 if ((ch & 0xc0) != 0x80) {
549 #if defined(HAVE_STRLCAT) 550 return strlcat(dst, src, maxlen);
554 if (dstlen < maxlen) {
557 return dstlen + srclen;
575 #if defined(HAVE__STRREV) 576 return _strrev(
string);
579 char *
a = &
string[0];
580 char *
b = &
string[len - 1];
594 #if defined(HAVE__STRUPR) 595 return _strupr(
string);
609 #if defined(HAVE__STRLWR) 610 return _strlwr(
string);
626 #elif defined(HAVE_INDEX) 644 #elif defined(HAVE_RINDEX) 647 const char *bufp =
string +
SDL_strlen(
string) - 1;
648 while (bufp >=
string) {
650 return (
char *) bufp;
661 #if defined(HAVE_STRSTR) 667 return (
char *) haystack;
675 #if !defined(HAVE__LTOA) || !defined(HAVE__I64TOA) || \ 676 !defined(HAVE__ULTOA) || !defined(HAVE__UI64TOA) 678 '0',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'9',
679 'A',
'B',
'C',
'D',
'E',
'F',
'G',
'H',
'I',
'J',
680 'K',
'L',
'M',
'N',
'O',
'P',
'Q',
'R',
'S',
'T',
681 'U',
'V',
'W',
'X',
'Y',
'Z' 689 return itoa(value,
string, radix);
691 return SDL_ltoa((
long)value,
string, radix);
699 return _uitoa(value,
string, radix);
701 return SDL_ultoa((
unsigned long)value,
string, radix);
708 #if defined(HAVE__LTOA) 709 return _ltoa(value,
string, radix);
727 #if defined(HAVE__ULTOA) 728 return _ultoa(value,
string, radix);
734 *bufp++ = ntoa_table[value % radix];
752 #if defined(HAVE__I64TOA) 753 return _i64toa(value,
string, radix);
771 #if defined(HAVE__UI64TOA) 772 return _ui64toa(value,
string, radix);
778 *bufp++ = ntoa_table[value % radix];
805 return (
double) atof(
string);
814 #if defined(HAVE_STRTOL) 815 return strtol(
string, endp, base);
830 *endp = (
char *)
string + len;
839 #if defined(HAVE_STRTOUL) 840 return strtoul(
string, endp, base);
843 unsigned long value = 0;
855 *endp = (
char *)
string + len;
864 #if defined(HAVE_STRTOLL) 865 return strtoll(
string, endp, base);
880 *endp = (
char *)
string + len;
889 #if defined(HAVE_STRTOULL) 890 return strtoull(
string, endp, base);
905 *endp = (
char *)
string + len;
914 #if defined(HAVE_STRTOD) 915 return strtod(
string, endp);
922 *endp = (
char *)
string + len;
931 #if defined(HAVE_STRCMP) 932 return strcmp(str1, str2);
934 while (*str1 && *str2) {
940 return (
int)((
unsigned char) *str1 - (
unsigned char) *str2);
947 #if defined(HAVE_STRNCMP) 948 return strncmp(str1, str2, maxlen);
950 while (*str1 && *str2 && maxlen) {
960 return (
int) ((
unsigned char) *str1 - (
unsigned char) *str2);
967 #ifdef HAVE_STRCASECMP 968 return strcasecmp(str1, str2);
969 #elif defined(HAVE__STRICMP) 970 return _stricmp(str1, str2);
974 while (*str1 && *str2) {
984 return (
int) ((
unsigned char) a - (
unsigned char)
b);
991 #ifdef HAVE_STRNCASECMP 992 return strncasecmp(str1, str2, maxlen);
993 #elif defined(HAVE__STRNICMP) 994 return _strnicmp(str1, str2, maxlen);
998 while (*str1 && *str2 && maxlen) {
1012 return (
int) ((
unsigned char) a - (
unsigned char)
b);
1032 return vsscanf(text, fmt, ap);
1040 if (!text || !*text) {
1090 char *valuep = va_arg(ap,
char *);
1092 *valuep++ = *text++;
1110 if (inttype > DO_SHORT) {
1115 if (inttype < DO_LONGLONG) {
1122 inttype = DO_LONGLONG;
1128 if (text[index] ==
'-') {
1131 if (text[index] ==
'0') {
1132 if (
SDL_tolower((
unsigned char) text[index + 1]) ==
'x') {
1141 if (inttype == DO_LONGLONG) {
1145 if (advance && !suppress) {
1154 if (advance && !suppress) {
1158 short *valuep = va_arg(ap,
short *);
1159 *valuep = (short) value;
1164 int *valuep = va_arg(ap,
int *);
1165 *valuep = (int) value;
1170 long *valuep = va_arg(ap,
long *);
1195 if (inttype == DO_LONGLONG) {
1199 if (advance && !suppress) {
1205 unsigned long value = 0;
1208 if (advance && !suppress) {
1212 short *valuep = va_arg(ap,
short *);
1213 *valuep = (short) value;
1218 int *valuep = va_arg(ap,
int *);
1219 *valuep = (int) value;
1224 long *valuep = va_arg(ap,
long *);
1242 if (advance && !suppress) {
1243 void **valuep = va_arg(ap,
void **);
1244 *valuep = (
void *) value;
1255 if (advance && !suppress) {
1256 float *valuep = va_arg(ap,
float *);
1257 *valuep = (float) value;
1274 char *valuep = va_arg(ap,
char *);
1276 *valuep++ = *text++;
1296 if (*text == *fmt) {
1322 #ifdef HAVE_VSNPRINTF 1328 return vsnprintf(text, maxlen, fmt, ap);
1357 if (
string ==
NULL) {
1364 while (width-- > 0 && maxlen > 0) {
1372 length +=
SDL_min(slen, maxlen);
1425 size_t left = maxlen;
1426 char *textstart =
text;
1430 unsigned long value;
1446 value = (
unsigned long) arg;
1449 text += (left > 1) ? left - 1 : 0;
1467 value = (
unsigned long) (arg * mult);
1470 text += (left > 1) ? left - 1 : 0;
1476 arg -= (double) value / mult;
1495 width = info->
width - (int)(text - textstart);
1498 char *
end = text+left-1;
1499 len = (text - textstart);
1500 for (len = (text - textstart); len--; ) {
1501 if ((textstart+len+width) <
end) {
1502 *(textstart+len+
width) = *(textstart+len);
1507 text += (left > 1) ? left - 1 : 0;
1514 if (textstart+len < end) {
1515 textstart[
len] = fill;
1520 return (text - textstart);
1526 size_t left = maxlen;
1527 char *textstart =
text;
1532 while (*fmt && left > 1) {
1550 while (check_flag) {
1571 if (*fmt >=
'0' && *fmt <=
'9') {
1577 if (*fmt >=
'0' && *fmt <=
'9') {
1596 *text = (char) va_arg(ap,
int);
1605 if (inttype < DO_LONGLONG) {
1612 inttype = DO_LONGLONG;
1620 (
long) va_arg(ap,
int));
1641 if (info.
radix == 10) {
1649 if (info.
radix == 10) {
1659 va_arg(ap,
unsigned int));
1663 va_arg(ap,
unsigned long));
1679 wchar_t *wide_arg = va_arg(ap,
wchar_t *);
1697 text += (left > 1) ? left - 1 : 0;
1711 return (
int)(text - textstart);
size_t SDL_wcslen(const wchar_t *string)
#define SDL_const_cast(type, expression)
int SDL_atoi(const char *string)
static size_t SDL_ScanFloat(const char *text, double *valuep)
char * SDL_strchr(const char *string, int c)
int SDL_vsnprintf(SDL_OUT_Z_CAP(maxlen) char *text, size_t maxlen, const char *fmt, va_list ap)
char * SDL_strrchr(const char *string, int c)
SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char const char SDL_SCANF_FORMAT_STRING const char return SDL_ThreadFunction const char void return Uint32 return Uint32 SDL_AssertionHandler void SDL_SpinLock SDL_atomic_t int int return SDL_atomic_t return void void void return void return int return SDL_AudioSpec SDL_AudioSpec return int int return return int SDL_RWops int SDL_AudioSpec Uint8 Uint32 return SDL_AudioCVT SDL_AudioFormat Uint8 int SDL_AudioFormat Uint8 int return Uint8 const Uint8 Uint32 int const char return return return return return return return return Uint32 return Uint32 SDL_Event return SDL_Event int return SDL_EventFilter void SDL_EventFilter void SDL_EventFilter void int return const char const char return SDL_JoystickGUID return int return int return SDL_GameController return int return const char return SDL_GameController SDL_GameControllerAxis return const char return SDL_GameController SDL_GameControllerButton return SDL_GameController SDL_RWops return SDL_TouchID SDL_RWops return int return int return return SDL_Joystick return SDL_Haptic SDL_Haptic return SDL_Haptic return SDL_Haptic SDL_HapticEffect return SDL_Haptic int Uint32 return SDL_Haptic int SDL_Haptic int return SDL_Haptic return SDL_Haptic return SDL_Haptic return SDL_Haptic return const char const char return const char SDL_HintCallback void int return SDL_Joystick return SDL_Joystick return const char return SDL_Joystick return SDL_Joystick return SDL_Joystick return int return SDL_Joystick int return SDL_Joystick int return return return SDL_Scancode return SDL_Scancode return SDL_Keycode return return const char return void int SDL_LogPriority SDL_LogOutputFunction void Uint32 const char const char SDL_Window return int int return SDL_Window int int return SDL_Surface int int return SDL_Cursor return int return SDL_mutex return SDL_mutex return Uint32 return SDL_sem return SDL_sem Uint32 return SDL_sem return SDL_cond SDL_cond return SDL_cond SDL_mutex Uint32 return Uint32 int Uint32 Uint32 Uint32 Uint32 return Uint32 return int return SDL_Palette const SDL_Color int int return const SDL_PixelFormat Uint8 Uint8 Uint8 return Uint32 const SDL_PixelFormat Uint8 Uint8 Uint8 float Uint16 int int return const SDL_Rect const SDL_Rect SDL_Rect return const SDL_Point int const SDL_Rect SDL_Rect return return int int Uint32 SDL_Window SDL_Renderer return SDL_Surface return SDL_Renderer SDL_RendererInfo return SDL_Renderer Uint32 int int int return SDL_Texture Uint32 int int int return SDL_Texture Uint8 Uint8 Uint8 return SDL_Texture Uint8 return SDL_Texture SDL_BlendMode return SDL_Texture const SDL_Rect const Uint8 int const Uint8 int const Uint8 int return SDL_Texture SDL_Renderer SDL_Texture return SDL_Renderer int int return SDL_Renderer const SDL_Rect return SDL_Renderer const SDL_Rect return SDL_Renderer float float return SDL_Renderer Uint8 Uint8 Uint8 Uint8 return SDL_Renderer SDL_BlendMode return SDL_Renderer return SDL_Renderer const SDL_Point int return SDL_Renderer const SDL_Point int return SDL_Renderer const SDL_Rect int return SDL_Renderer const SDL_Rect int return SDL_Renderer SDL_Texture const SDL_Rect const SDL_Rect const double const SDL_Point const SDL_RendererFlip return SDL_Renderer SDL_Renderer SDL_Texture return void int return return SDL_RWops return SDL_RWops return SDL_RWops return SDL_RWops return SDL_RWops Uint16 return SDL_RWops Uint32 return SDL_RWops Uint64 return const char unsigned int unsigned int unsigned int unsigned int Uint32 return SDL_Window SDL_Surface SDL_WindowShapeMode return size_t return void size_t return const char return void size_t size_t int(*) int return int return int size_t retur SDL_IN_BYTECAP)(c) const void *b
int SDL_strncmp(const char *str1, const char *str2, size_t maxlen)
int SDL_strcasecmp(const char *str1, const char *str2)
void * SDL_memmove(SDL_OUT_BYTECAP(len) void *dst, SDL_IN_BYTECAP(len) const void *src, size_t len)
char * SDL_itoa(int value, char *string, int radix)
GLsizei const GLchar *const * string
char * SDL_strupr(char *string)
GLuint GLuint GLsizei count
void * SDL_memset(SDL_OUT_BYTECAP(len) void *dst, int c, size_t len)
size_t SDL_strlcpy(SDL_OUT_Z_CAP(maxlen) char *dst, const char *src, size_t maxlen)
char * SDL_uitoa(unsigned int value, char *string, int radix)
char * SDL_strdup(const char *string)
int SDL_sscanf(const char *text, SDL_SCANF_FORMAT_STRING const char *fmt,...)
double SDL_atof(const char *string)
static const char ntoa_table[]
#define SDL_SCANF_FORMAT_STRING
#define SDL_islowerhex(X)
static size_t SDL_ScanUintPtrT(const char *text, int radix, uintptr_t *valuep)
long SDL_strtol(const char *string, char **endp, int base)
GLint GLint GLsizei width
size_t SDL_strlcat(SDL_INOUT_Z_CAP(maxlen) char *dst, const char *src, size_t maxlen)
static size_t SDL_PrintLongLong(char *text, size_t maxlen, SDL_FormatInfo *info, Sint64 value)
double SDL_strtod(const char *string, char **endp)
static size_t SDL_PrintLong(char *text, size_t maxlen, SDL_FormatInfo *info, long value)
size_t SDL_strlen(const char *string)
int SDL_snprintf(SDL_OUT_Z_CAP(maxlen) char *text, size_t maxlen, SDL_PRINTF_FORMAT_STRING const char *fmt,...)
static size_t SDL_ScanLong(const char *text, int radix, long *valuep)
SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char const char SDL_SCANF_FORMAT_STRING const char return SDL_ThreadFunction const char void return Uint32 return Uint32 SDL_AssertionHandler void SDL_SpinLock SDL_atomic_t int int return SDL_atomic_t return void void void return void return int return SDL_AudioSpec SDL_AudioSpec return int int return return int SDL_RWops int SDL_AudioSpec Uint8 Uint32 return SDL_AudioCVT SDL_AudioFormat Uint8 int SDL_AudioFormat Uint8 int return Uint8 const Uint8 Uint32 int const char return return return return return return return return Uint32 return Uint32 SDL_Event return SDL_Event int return SDL_EventFilter void SDL_EventFilter void SDL_EventFilter void int return const char const char return SDL_JoystickGUID return int return int return SDL_GameController return int return const char return SDL_GameController SDL_GameControllerAxis return const char return SDL_GameController SDL_GameControllerButton return SDL_GameController SDL_RWops return SDL_TouchID SDL_RWops return int return int return return SDL_Joystick return SDL_Haptic SDL_Haptic return SDL_Haptic return SDL_Haptic SDL_HapticEffect return SDL_Haptic int Uint32 return SDL_Haptic int SDL_Haptic int return SDL_Haptic return SDL_Haptic return SDL_Haptic return SDL_Haptic return const char const char return const char SDL_HintCallback void int return SDL_Joystick return SDL_Joystick return const char return SDL_Joystick return SDL_Joystick return SDL_Joystick return int return SDL_Joystick int return SDL_Joystick int return return return SDL_Scancode return SDL_Scancode return SDL_Keycode return return const char return void int SDL_LogPriority SDL_LogOutputFunction void Uint32 const char const char SDL_Window return int int return SDL_Window int int return SDL_Surface int int return SDL_Cursor return int return SDL_mutex return SDL_mutex return Uint32 return SDL_sem return SDL_sem Uint32 return SDL_sem return SDL_cond SDL_cond return SDL_cond SDL_mutex Uint32 return Uint32 int Uint32 Uint32 Uint32 Uint32 return Uint32 return int return SDL_Palette const SDL_Color int int return const SDL_PixelFormat Uint8 Uint8 Uint8 return Uint32 const SDL_PixelFormat Uint8 Uint8 Uint8 float Uint16 int int return const SDL_Rect const SDL_Rect SDL_Rect return const SDL_Point int const SDL_Rect SDL_Rect return return int int Uint32 SDL_Window SDL_Renderer return SDL_Surface return SDL_Renderer SDL_RendererInfo return SDL_Renderer Uint32 int int int return SDL_Texture Uint32 int int int return SDL_Texture Uint8 Uint8 Uint8 return SDL_Texture Uint8 return SDL_Texture SDL_BlendMode return SDL_Texture const SDL_Rect const Uint8 int const Uint8 int const Uint8 int return SDL_Texture SDL_Renderer SDL_Texture return SDL_Renderer int int return SDL_Renderer const SDL_Rect return SDL_Renderer const SDL_Rect return SDL_Renderer float float return SDL_Renderer Uint8 Uint8 Uint8 Uint8 return SDL_Renderer SDL_BlendMode return SDL_Renderer return SDL_Renderer const SDL_Point int return SDL_Renderer const SDL_Point int return SDL_Renderer const SDL_Rect int return SDL_Renderer const SDL_Rect int return SDL_Renderer SDL_Texture const SDL_Rect const SDL_Rect const double const SDL_Point const SDL_RendererFlip return SDL_Renderer SDL_Renderer SDL_Texture return void int return return SDL_RWops return SDL_RWops return SDL_RWops return SDL_RWops return SDL_RWops Uint16 return SDL_RWops Uint32 return SDL_RWops Uint64 return const char unsigned int unsigned int unsigned int unsigned int Uint32 return SDL_Window SDL_Surface SDL_WindowShapeMode return size_t return void size_t return const char return void size_t size_t int(*) int return int return int size_t return size_t return const wchar_t return const wchar_t size_t retur SDL_OUT_Z_CAP)(c) char *a
char * SDL_strrev(char *string)
char * SDL_strlwr(char *string)
int SDL_wcscmp(const wchar_t *str1, const wchar_t *str2)
unsigned long SDL_strtoul(const char *string, char **endp, int base)
size_t SDL_wcslcpy(SDL_OUT_Z_CAP(maxlen) wchar_t *dst, const wchar_t *src, size_t maxlen)
size_t SDL_utf8strlen(const char *str)
char * SDL_lltoa(Sint64 value, char *string, int radix)
#define UTF8_IsLeadByte(c)
size_t SDL_wcslcat(SDL_INOUT_Z_CAP(maxlen) wchar_t *dst, const wchar_t *src, size_t maxlen)
GLsizei const GLfloat * value
SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char const char SDL_SCANF_FORMAT_STRING const char return SDL_ThreadFunction const char void return Uint32 return Uint32 SDL_AssertionHandler void SDL_SpinLock SDL_atomic_t int int return SDL_atomic_t return void void void return void return int return SDL_AudioSpec SDL_AudioSpec return int int return return int SDL_RWops int SDL_AudioSpec Uint8 Uint32 return SDL_AudioCVT SDL_AudioFormat Uint8 int SDL_AudioFormat Uint8 int return Uint8 const Uint8 Uint32 int const char return return return return return return return return Uint32 return Uint32 SDL_Event return SDL_Event int return SDL_EventFilter void SDL_EventFilter void SDL_EventFilter void int return const char const char return SDL_JoystickGUID return int return int return SDL_GameController return int return const char return SDL_GameController SDL_GameControllerAxis return const char return SDL_GameController SDL_GameControllerButton return SDL_GameController SDL_RWops return SDL_TouchID SDL_RWops return int return int return return SDL_Joystick return SDL_Haptic SDL_Haptic return SDL_Haptic return SDL_Haptic SDL_HapticEffect return SDL_Haptic int Uint32 return SDL_Haptic int SDL_Haptic int return SDL_Haptic return SDL_Haptic return SDL_Haptic return SDL_Haptic return const char const char return const char SDL_HintCallback void int return SDL_Joystick return SDL_Joystick return const char return SDL_Joystick return SDL_Joystick return SDL_Joystick return int return SDL_Joystick int return SDL_Joystick int return return return SDL_Scancode return SDL_Scancode return SDL_Keycode return return const char return void int SDL_LogPriority SDL_LogOutputFunction void Uint32 const char const char SDL_Window return int int return SDL_Window int int return SDL_Surface int int return SDL_Cursor return int return SDL_mutex return SDL_mutex return Uint32 return SDL_sem return SDL_sem Uint32 return SDL_sem return SDL_cond SDL_cond return SDL_cond SDL_mutex Uint32 return Uint32 int Uint32 Uint32 Uint32 Uint32 return Uint32 return int return SDL_Palette const SDL_Color int int return const SDL_PixelFormat Uint8 Uint8 Uint8 return Uint32 const SDL_PixelFormat Uint8 Uint8 Uint8 float Uint16 int int return const SDL_Rect const SDL_Rect SDL_Rect return const SDL_Point int const SDL_Rect SDL_Rect return return int int Uint32 SDL_Window SDL_Renderer return SDL_Surface return SDL_Renderer SDL_RendererInfo return SDL_Renderer Uint32 int int int return SDL_Texture Uint32 int int int return SDL_Texture Uint8 Uint8 Uint8 return SDL_Texture Uint8 return SDL_Texture SDL_BlendMode return SDL_Texture const SDL_Rect const Uint8 int const Uint8 int const Uint8 int return SDL_Texture SDL_Renderer SDL_Texture return SDL_Renderer int int return SDL_Renderer const SDL_Rect return SDL_Renderer const SDL_Rect return SDL_Renderer float float return SDL_Renderer Uint8 Uint8 Uint8 Uint8 return SDL_Renderer SDL_BlendMode return SDL_Renderer return SDL_Renderer const SDL_Point int return SDL_Renderer const SDL_Point int return SDL_Renderer const SDL_Rect int return SDL_Renderer const SDL_Rect int return SDL_Renderer SDL_Texture const SDL_Rect const SDL_Rect const double const SDL_Point const SDL_RendererFlip return SDL_Renderer SDL_Renderer SDL_Texture return void int return return SDL_RWops return SDL_RWops return SDL_RWops return SDL_RWops return SDL_RWops Uint16 return SDL_RWops Uint32 return SDL_RWops Uint64 return const char unsigned int unsigned int unsigned int unsigned int Uint32 return SDL_Window SDL_Surface SDL_WindowShapeMode return size_t return void size_t return const char return void size_t size_t int(*) int return int return int size_t return size_t return const wchar_t retur SDL_INOUT_Z_CAP)(c) wchar_t *a
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat s1
int SDL_strncasecmp(const char *str1, const char *str2, size_t maxlen)
char * SDL_ultoa(unsigned long value, char *string, int radix)
return Display return Display Bool Bool int int int return Display XEvent Bool(*) XPointer return Display return Display Drawable _Xconst char unsigned int unsigned int return Display Pixmap Pixmap XColor XColor unsigned int unsigned int return Display _Xconst char char int char return Display Visual unsigned int int int char unsigned int unsigned int in i)
Uint64 SDL_strtoull(const char *string, char **endp, int base)
#define SDL_isupperhex(X)
void * SDL_memcpy(SDL_OUT_BYTECAP(len) void *dst, SDL_IN_BYTECAP(len) const void *src, size_t len)
static char text[MAX_TEXT_LENGTH]
Sint64 SDL_strtoll(const char *string, char **endp, int base)
char * SDL_strstr(const char *haystack, const char *needle)
int SDL_strcmp(const char *str1, const char *str2)
static size_t SDL_PrintUnsignedLongLong(char *text, size_t maxlen, SDL_FormatInfo *info, Uint64 value)
static int UTF8_TrailingBytes(unsigned char c)
int SDL_memcmp(const void *s1, const void *s2, size_t len)
static size_t SDL_ScanLongLong(const char *text, int radix, Sint64 *valuep)
SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char const char SDL_SCANF_FORMAT_STRING const char return SDL_ThreadFunction const char void return Uint32 return Uint32 SDL_AssertionHandler void SDL_SpinLock SDL_atomic_t int int return SDL_atomic_t return void void void return void return int return SDL_AudioSpec SDL_AudioSpec return int int return return int SDL_RWops int SDL_AudioSpec Uint8 Uint32 return SDL_AudioCVT SDL_AudioFormat Uint8 int SDL_AudioFormat Uint8 int return Uint8 const Uint8 Uint32 int const char return return return return return return return return Uint32 return Uint32 SDL_Event return SDL_Event int return SDL_EventFilter void SDL_EventFilter void SDL_EventFilter void int return const char const char return SDL_JoystickGUID return int return int return SDL_GameController return int return const char return SDL_GameController SDL_GameControllerAxis return const char return SDL_GameController SDL_GameControllerButton return SDL_GameController SDL_RWops return SDL_TouchID SDL_RWops return int return int return return SDL_Joystick return SDL_Haptic SDL_Haptic return SDL_Haptic return SDL_Haptic SDL_HapticEffect return SDL_Haptic int Uint32 return SDL_Haptic int SDL_Haptic int return SDL_Haptic return SDL_Haptic return SDL_Haptic return SDL_Haptic return const char const char return const char SDL_HintCallback void int return SDL_Joystick return SDL_Joystick return const char return SDL_Joystick return SDL_Joystick return SDL_Joystick return int return SDL_Joystick int return SDL_Joystick int return return return SDL_Scancode return SDL_Scancode return SDL_Keycode return return const char return void int SDL_LogPriority SDL_LogOutputFunction void Uint32 const char const char SDL_Window return int int return SDL_Window int int return SDL_Surface int int return SDL_Cursor return int return SDL_mutex return SDL_mutex return Uint32 return SDL_sem return SDL_sem Uint32 return SDL_sem return SDL_cond SDL_cond return SDL_cond SDL_mutex Uint32 return Uint32 int Uint32 Uint32 Uint32 Uint32 return Uint32 return int return SDL_Palette const SDL_Color int int return const SDL_PixelFormat Uint8 Uint8 Uint8 return Uint32 const SDL_PixelFormat Uint8 Uint8 Uint8 float Uint16 int int return const SDL_Rect const SDL_Rect SDL_Rect return const SDL_Point int const SDL_Rect SDL_Rect return return int int Uint32 SDL_Window SDL_Renderer return SDL_Surface return SDL_Renderer SDL_RendererInfo return SDL_Renderer Uint32 int int int return SDL_Texture Uint32 int int int return SDL_Texture Uint8 Uint8 Uint8 return SDL_Texture Uint8 return SDL_Texture SDL_BlendMode return SDL_Texture const SDL_Rect const Uint8 int const Uint8 int const Uint8 int return SDL_Texture SDL_Renderer SDL_Texture return SDL_Renderer int int return SDL_Renderer const SDL_Rect return SDL_Renderer const SDL_Rect return SDL_Renderer float float return SDL_Renderer Uint8 Uint8 Uint8 Uint8 return SDL_Renderer SDL_BlendMode return SDL_Renderer return SDL_Renderer const SDL_Point int return SDL_Renderer const SDL_Point int return SDL_Renderer const SDL_Rect int return SDL_Renderer const SDL_Rect int return SDL_Renderer SDL_Texture const SDL_Rect const SDL_Rect const double const SDL_Point const SDL_RendererFlip return SDL_Renderer SDL_Renderer SDL_Texture return void int return return SDL_RWops return SDL_RWops return SDL_RWops return SDL_RWops return SDL_RWops Uint16 return SDL_RWops Uint32 return SDL_RWops Uint64 return const char unsigned int unsigned int unsigned int unsigned int Uint32 return SDL_Window SDL_Surface SDL_WindowShapeMode return size_t return void size_t return const char return void size_t size_t int(*) int return int retur SDL_OUT_BYTECAP)(c) void *a
char * SDL_ulltoa(Uint64 value, char *string, int radix)
#define SDL_PRINTF_FORMAT_STRING
GLuint GLsizei GLsizei * length
GLboolean GLboolean GLboolean GLboolean a
char * SDL_ltoa(long value, char *string, int radix)
#define UTF8_IsTrailingByte(c)
static size_t SDL_PrintString(char *text, size_t maxlen, SDL_FormatInfo *info, const char *string)
GLboolean GLboolean GLboolean b
size_t SDL_utf8strlcpy(SDL_OUT_Z_CAP(dst_bytes) char *dst, const char *src, size_t dst_bytes)
static size_t SDL_ScanUnsignedLongLong(const char *text, int radix, Uint64 *valuep)
static size_t SDL_PrintUnsignedLong(char *text, size_t maxlen, SDL_FormatInfo *info, unsigned long value)
static size_t SDL_PrintFloat(char *text, size_t maxlen, SDL_FormatInfo *info, double arg)
static size_t SDL_ScanUnsignedLong(const char *text, int radix, unsigned long *valuep)
int SDL_vsscanf(const char *text, const char *fmt, va_list ap)