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;
564 #if defined(HAVE_STRDUP) 565 return strdup(
string);
579 #if defined(HAVE__STRREV) 580 return _strrev(
string);
583 char *
a = &
string[0];
584 char *
b = &
string[len - 1];
598 #if defined(HAVE__STRUPR) 599 return _strupr(
string);
613 #if defined(HAVE__STRLWR) 614 return _strlwr(
string);
630 #elif defined(HAVE_INDEX) 648 #elif defined(HAVE_RINDEX) 651 const char *bufp =
string +
SDL_strlen(
string) - 1;
652 while (bufp >=
string) {
654 return (
char *) bufp;
665 #if defined(HAVE_STRSTR) 671 return (
char *) haystack;
679 #if !defined(HAVE__LTOA) || !defined(HAVE__I64TOA) || \ 680 !defined(HAVE__ULTOA) || !defined(HAVE__UI64TOA) 682 '0',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'9',
683 'A',
'B',
'C',
'D',
'E',
'F',
'G',
'H',
'I',
'J',
684 'K',
'L',
'M',
'N',
'O',
'P',
'Q',
'R',
'S',
'T',
685 'U',
'V',
'W',
'X',
'Y',
'Z' 693 return itoa(value,
string, radix);
695 return SDL_ltoa((
long)value,
string, radix);
703 return _uitoa(value,
string, radix);
705 return SDL_ultoa((
unsigned long)value,
string, radix);
712 #if defined(HAVE__LTOA) 713 return _ltoa(value,
string, radix);
731 #if defined(HAVE__ULTOA) 732 return _ultoa(value,
string, radix);
738 *bufp++ = ntoa_table[value % radix];
756 #if defined(HAVE__I64TOA) 757 return _i64toa(value,
string, radix);
775 #if defined(HAVE__UI64TOA) 776 return _ui64toa(value,
string, radix);
782 *bufp++ = ntoa_table[value % radix];
809 return (
double) atof(
string);
818 #if defined(HAVE_STRTOL) 819 return strtol(
string, endp, base);
834 *endp = (
char *)
string + len;
843 #if defined(HAVE_STRTOUL) 844 return strtoul(
string, endp, base);
847 unsigned long value = 0;
859 *endp = (
char *)
string + len;
868 #if defined(HAVE_STRTOLL) 869 return strtoll(
string, endp, base);
884 *endp = (
char *)
string + len;
893 #if defined(HAVE_STRTOULL) 894 return strtoull(
string, endp, base);
909 *endp = (
char *)
string + len;
918 #if defined(HAVE_STRTOD) 919 return strtod(
string, endp);
926 *endp = (
char *)
string + len;
935 #if defined(HAVE_STRCMP) 936 return strcmp(str1, str2);
938 while (*str1 && *str2) {
944 return (
int)((
unsigned char) *str1 - (
unsigned char) *str2);
951 #if defined(HAVE_STRNCMP) 952 return strncmp(str1, str2, maxlen);
954 while (*str1 && *str2 && maxlen) {
964 return (
int) ((
unsigned char) *str1 - (
unsigned char) *str2);
971 #ifdef HAVE_STRCASECMP 972 return strcasecmp(str1, str2);
973 #elif defined(HAVE__STRICMP) 974 return _stricmp(str1, str2);
978 while (*str1 && *str2) {
988 return (
int) ((
unsigned char) a - (
unsigned char)
b);
995 #ifdef HAVE_STRNCASECMP 996 return strncasecmp(str1, str2, maxlen);
997 #elif defined(HAVE__STRNICMP) 998 return _strnicmp(str1, str2, maxlen);
1002 while (*str1 && *str2 && maxlen) {
1016 return (
int) ((
unsigned char) a - (
unsigned char)
b);
1036 return vsscanf(text, fmt, ap);
1044 if (!text || !*text) {
1094 char *valuep = va_arg(ap,
char *);
1096 *valuep++ = *text++;
1114 if (inttype > DO_SHORT) {
1119 if (inttype < DO_LONGLONG) {
1126 inttype = DO_LONGLONG;
1132 if (text[index] ==
'-') {
1135 if (text[index] ==
'0') {
1136 if (
SDL_tolower((
unsigned char) text[index + 1]) ==
'x') {
1145 if (inttype == DO_LONGLONG) {
1149 if (advance && !suppress) {
1158 if (advance && !suppress) {
1162 short *valuep = va_arg(ap,
short *);
1163 *valuep = (short) value;
1168 int *valuep = va_arg(ap,
int *);
1169 *valuep = (int) value;
1174 long *valuep = va_arg(ap,
long *);
1199 if (inttype == DO_LONGLONG) {
1203 if (advance && !suppress) {
1209 unsigned long value = 0;
1212 if (advance && !suppress) {
1216 short *valuep = va_arg(ap,
short *);
1217 *valuep = (short) value;
1222 int *valuep = va_arg(ap,
int *);
1223 *valuep = (int) value;
1228 long *valuep = va_arg(ap,
long *);
1246 if (advance && !suppress) {
1247 void **valuep = va_arg(ap,
void **);
1248 *valuep = (
void *) value;
1259 if (advance && !suppress) {
1260 float *valuep = va_arg(ap,
float *);
1261 *valuep = (float) value;
1278 char *valuep = va_arg(ap,
char *);
1280 *valuep++ = *text++;
1300 if (*text == *fmt) {
1326 #ifdef HAVE_VSNPRINTF 1332 return vsnprintf(text, maxlen, fmt, ap);
1361 if (
string ==
NULL) {
1368 while (width-- > 0 && maxlen > 0) {
1376 length +=
SDL_min(slen, maxlen);
1429 size_t left = maxlen;
1430 char *textstart =
text;
1434 unsigned long value;
1450 value = (
unsigned long) arg;
1453 text += (left > 1) ? left - 1 : 0;
1471 value = (
unsigned long) (arg * mult);
1474 text += (left > 1) ? left - 1 : 0;
1480 arg -= (double) value / mult;
1499 width = info->
width - (int)(text - textstart);
1502 char *
end = text+left-1;
1503 len = (text - textstart);
1504 for (len = (text - textstart); len--; ) {
1505 if ((textstart+len+width) <
end) {
1506 *(textstart+len+
width) = *(textstart+len);
1511 text += (left > 1) ? left - 1 : 0;
1518 if (textstart+len < end) {
1519 textstart[
len] = fill;
1524 return (text - textstart);
1530 size_t left = maxlen;
1531 char *textstart =
text;
1536 while (*fmt && left > 1) {
1554 while (check_flag) {
1575 if (*fmt >=
'0' && *fmt <=
'9') {
1581 if (*fmt >=
'0' && *fmt <=
'9') {
1600 *text = (char) va_arg(ap,
int);
1609 if (inttype < DO_LONGLONG) {
1616 inttype = DO_LONGLONG;
1624 (
long) va_arg(ap,
int));
1645 if (info.
radix == 10) {
1653 if (info.
radix == 10) {
1663 va_arg(ap,
unsigned int));
1667 va_arg(ap,
unsigned long));
1683 wchar_t *wide_arg = va_arg(ap,
wchar_t *);
1701 text += (left > 1) ? left - 1 : 0;
1715 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[]
uint32_t Uint32
An unsigned 32-bit integer type.
#define SDL_SCANF_FORMAT_STRING
#define SDL_islowerhex(X)
uint64_t Uint64
An unsigned 64-bit integer type.
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)
uint8_t Uint8
An unsigned 8-bit integer type.
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)
int64_t Sint64
A signed 64-bit integer type.
#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)