22 #if defined(__clang_analyzer__) && !defined(SDL_DISABLE_ANALYZE_MACROS) 23 #define SDL_DISABLE_ANALYZE_MACROS 1 30 #include "../SDL_internal.h" 37 #define SDL_isupperhex(X) (((X) >= 'A') && ((X) <= 'F')) 38 #define SDL_islowerhex(X) (((X) >= 'a') && ((X) <= 'f')) 40 #define UTF8_IsLeadByte(c) ((c) >= 0xC0 && (c) <= 0xF4) 41 #define UTF8_IsTrailingByte(c) ((c) >= 0x80 && (c) <= 0xBF) 45 if (c >= 0xC0 && c <= 0xDF)
47 else if (c >= 0xE0 && c <= 0xEF)
49 else if (c >= 0xF0 && c <= 0xF4)
55 #if !defined(HAVE_VSSCANF) || !defined(HAVE_STRTOL) 59 const char *textstart =
text;
67 if (radix == 16 &&
SDL_strncmp(text,
"0x", 2) == 0) {
75 v = 10 + (*text -
'A');
77 v = 10 + (*text -
'a');
86 if (negative && value) {
92 return (text - textstart);
96 #if !defined(HAVE_VSSCANF) || !defined(HAVE_STRTOUL) || !defined(HAVE_STRTOD) 100 const char *textstart =
text;
101 unsigned long value = 0;
103 if (radix == 16 &&
SDL_strncmp(text,
"0x", 2) == 0) {
111 v = 10 + (*text -
'A');
113 v = 10 + (*text -
'a');
124 return (text - textstart);
132 const char *textstart =
text;
135 if (radix == 16 &&
SDL_strncmp(text,
"0x", 2) == 0) {
143 v = 10 + (*text -
'A');
145 v = 10 + (*text -
'a');
156 return (text - textstart);
160 #if !defined(HAVE_VSSCANF) || !defined(HAVE_STRTOLL) 164 const char *textstart =
text;
172 if (radix == 16 &&
SDL_strncmp(text,
"0x", 2) == 0) {
180 v = 10 + (*text -
'A');
182 v = 10 + (*text -
'a');
191 if (negative && value) {
197 return (text - textstart);
201 #if !defined(HAVE_VSSCANF) || !defined(HAVE_STRTOULL) 205 const char *textstart =
text;
208 if (radix == 16 &&
SDL_strncmp(text,
"0x", 2) == 0) {
216 v = 10 + (*text -
'A');
218 v = 10 + (*text -
'a');
229 return (text - textstart);
233 #if !defined(HAVE_VSSCANF) || !defined(HAVE_STRTOD) 237 const char *textstart =
text;
238 unsigned long lvalue = 0;
252 lvalue = *text -
'0';
253 value += (double) lvalue / mult;
259 if (negative && value) {
265 return (text - textstart);
272 #if defined(HAVE_MEMSET) 273 return memset(dst, c, len);
278 Uint32 value4 = (c | (c << 8) | (c << 16) | (c << 24));
284 while ((intptr_t)dstp1 & 0x3) {
299 dstp1 = (
Uint8 *) dstp4;
320 return __builtin_memcpy(dst, src, len);
321 #elif defined(HAVE_MEMCPY) 322 return memcpy(dst, src, len);
323 #elif defined(HAVE_BCOPY) 324 bcopy(src, dst, len);
331 if (((intptr_t)src & 0x3) || ((intptr_t)dst & 0x3)) {
340 size_t left = (len % 4);
342 Uint8 *srcp1, *dstp1;
351 srcp1 = (
Uint8 *) srcp4;
352 dstp1 = (
Uint8 *) dstp4;
369 #if defined(HAVE_MEMMOVE) 372 char *srcp = (
char *) src;
373 char *dstp = (
char *) dst;
393 #if defined(HAVE_MEMCMP) 394 return memcmp(s1, s2, len);
396 char *s1p = (
char *) s1;
397 char *s2p = (
char *) s2;
400 return (*s1p - *s2p);
412 #if defined(HAVE_STRLEN) 413 return strlen(
string);
426 #if defined(HAVE_WCSLEN) 427 return wcslen(
string);
440 #if defined(HAVE_WCSLCPY) 441 return wcslcpy(dst, src, maxlen);
456 #if defined(HAVE_WCSLCAT) 457 return wcslcat(dst, src, maxlen);
461 if (dstlen < maxlen) {
464 return dstlen + srclen;
471 #if defined(HAVE_STRLCPY) 472 return strlcpy(dst, src, maxlen);
487 size_t bytes =
SDL_min(src_bytes, dst_bytes - 1);
489 char trailing_bytes = 0;
492 unsigned char c = (
unsigned char)src[bytes - 1];
497 for (i = bytes - 1; i != 0; --
i)
499 c = (
unsigned char)src[i];
503 if (bytes - i != trailing_bytes + 1)
519 #if defined(HAVE_STRLCAT) 520 return strlcat(dst, src, maxlen);
524 if (dstlen < maxlen) {
527 return dstlen + srclen;
534 #if defined(HAVE_STRDUP) 535 return strdup(
string);
549 #if defined(HAVE__STRREV) 550 return _strrev(
string);
553 char *
a = &
string[0];
554 char *
b = &
string[len - 1];
568 #if defined(HAVE__STRUPR) 569 return _strupr(
string);
583 #if defined(HAVE__STRLWR) 584 return _strlwr(
string);
600 #elif defined(HAVE_INDEX) 618 #elif defined(HAVE_RINDEX) 621 const char *bufp =
string +
SDL_strlen(
string) - 1;
622 while (bufp >=
string) {
624 return (
char *) bufp;
635 #if defined(HAVE_STRSTR) 641 return (
char *) haystack;
649 #if !defined(HAVE__LTOA) || !defined(HAVE__I64TOA) || \ 650 !defined(HAVE__ULTOA) || !defined(HAVE__UI64TOA) 652 '0',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'9',
653 'A',
'B',
'C',
'D',
'E',
'F',
'G',
'H',
'I',
'J',
654 'K',
'L',
'M',
'N',
'O',
'P',
'Q',
'R',
'S',
'T',
655 'U',
'V',
'W',
'X',
'Y',
'Z' 663 return itoa(value,
string, radix);
665 return SDL_ltoa((
long)value,
string, radix);
673 return _uitoa(value,
string, radix);
675 return SDL_ultoa((
unsigned long)value,
string, radix);
682 #if defined(HAVE__LTOA) 683 return _ltoa(value,
string, radix);
701 #if defined(HAVE__ULTOA) 702 return _ultoa(value,
string, radix);
708 *bufp++ = ntoa_table[value % radix];
726 #if defined(HAVE__I64TOA) 727 return _i64toa(value,
string, radix);
745 #if defined(HAVE__UI64TOA) 746 return _ui64toa(value,
string, radix);
752 *bufp++ = ntoa_table[value % radix];
779 return (
double) atof(
string);
788 #if defined(HAVE_STRTOL) 789 return strtol(
string, endp, base);
804 *endp = (
char *)
string + len;
813 #if defined(HAVE_STRTOUL) 814 return strtoul(
string, endp, base);
829 *endp = (
char *)
string + len;
838 #if defined(HAVE_STRTOLL) 839 return strtoll(
string, endp, base);
854 *endp = (
char *)
string + len;
863 #if defined(HAVE_STRTOULL) 864 return strtoull(
string, endp, base);
879 *endp = (
char *)
string + len;
888 #if defined(HAVE_STRTOD) 889 return strtod(
string, endp);
896 *endp = (
char *)
string + len;
905 #if defined(HAVE_STRCMP) 906 return strcmp(str1, str2);
908 while (*str1 && *str2) {
914 return (
int) ((
unsigned char) *str1 - (
unsigned char) *str2);
921 #if defined(HAVE_STRNCMP) 922 return strncmp(str1, str2, maxlen);
924 while (*str1 && *str2 && maxlen) {
934 return (
int) ((
unsigned char) *str1 - (
unsigned char) *str2);
941 #ifdef HAVE_STRCASECMP 942 return strcasecmp(str1, str2);
943 #elif defined(HAVE__STRICMP) 944 return _stricmp(str1, str2);
948 while (*str1 && *str2) {
958 return (
int) ((
unsigned char) a - (
unsigned char)
b);
965 #ifdef HAVE_STRNCASECMP 966 return strncasecmp(str1, str2, maxlen);
967 #elif defined(HAVE__STRNICMP) 968 return _strnicmp(str1, str2, maxlen);
972 while (*str1 && *str2 && maxlen) {
986 return (
int) ((
unsigned char) a - (
unsigned char)
b);
1006 return vsscanf(text, fmt, ap);
1059 char *valuep = va_arg(ap,
char *);
1061 *valuep++ = *text++;
1079 if (inttype > DO_SHORT) {
1084 if (inttype < DO_LONGLONG) {
1091 inttype = DO_LONGLONG;
1097 if (text[index] ==
'-') {
1100 if (text[index] ==
'0') {
1101 if (
SDL_tolower((
unsigned char) text[index + 1]) ==
'x') {
1110 if (inttype == DO_LONGLONG) {
1125 short *valuep = va_arg(ap,
short *);
1126 *valuep = (short) value;
1131 int *valuep = va_arg(ap,
int *);
1132 *valuep = (int) value;
1137 long *valuep = va_arg(ap,
long *);
1162 if (inttype == DO_LONGLONG) {
1171 unsigned long value;
1177 short *valuep = va_arg(ap,
short *);
1178 *valuep = (short) value;
1183 int *valuep = va_arg(ap,
int *);
1184 *valuep = (int) value;
1189 long *valuep = va_arg(ap,
long *);
1207 void **valuep = va_arg(ap,
void **);
1208 *valuep = (
void *) value;
1219 float *valuep = va_arg(ap,
float *);
1220 *valuep = (float) value;
1237 char *valuep = va_arg(ap,
char *);
1239 *valuep++ = *text++;
1259 if (*text == *fmt) {
1285 #ifdef HAVE_VSNPRINTF 1291 return vsnprintf(text, maxlen, fmt, ap);
1322 while (width-- > 0 && maxlen > 0) {
1382 size_t left = maxlen;
1383 char *textstart =
text;
1387 unsigned long value;
1403 value = (
unsigned long) arg;
1423 value = (
unsigned long) (arg * mult);
1431 arg -= (double) value / mult;
1450 width = info->
width - (int)(text - textstart);
1453 char *
end = text+left-1;
1454 len = (text - textstart);
1455 for (len = (text - textstart); len--; ) {
1456 if ((textstart+len+width) <
end) {
1457 *(textstart+len+
width) = *(textstart+len);
1468 if (textstart+len < end) {
1469 textstart[
len] = fill;
1474 return (text - textstart);
1480 size_t left = maxlen;
1481 char *textstart =
text;
1504 while (check_flag) {
1525 if (*fmt >=
'0' && *fmt <=
'9') {
1531 if (*fmt >=
'0' && *fmt <=
'9') {
1550 *text = (char) va_arg(ap,
int);
1559 if (inttype < DO_LONGLONG) {
1566 inttype = DO_LONGLONG;
1574 (
long) va_arg(ap,
int));
1595 if (info.
radix == 10) {
1603 if (info.
radix == 10) {
1613 va_arg(ap,
unsigned int));
1617 va_arg(ap,
unsigned long));
1658 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)
GLint GLint GLsizei width
uint32_t Uint32
An unsigned 32-bit integer type.
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)
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)
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)
unsigned long SDL_strtoul(const char *string, char **endp, int base)
GLsizei const GLfloat * value
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.
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)
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)
Uint64 SDL_strtoull(const char *string, char **endp, int base)
#define SDL_isupperhex(X)
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)
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)