packages feed

sdl3-bindgen-sys-0.0.0.1: src/SDL3/Sys/Bindgen/Stdinc/Unsafe.hs

{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE NoFieldSelectors #-}
{-# OPTIONS_HADDOCK prune #-}

module SDL3.Sys.Bindgen.Stdinc.Unsafe (
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_malloc,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_calloc,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_realloc,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_free,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_GetOriginalMemoryFunctions,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_GetMemoryFunctions,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_SetMemoryFunctions,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_aligned_alloc,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_aligned_free,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_GetNumAllocations,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_GetEnvironment,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_CreateEnvironment,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_GetEnvironmentVariable,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_GetEnvironmentVariables,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_SetEnvironmentVariable,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_UnsetEnvironmentVariable,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_DestroyEnvironment,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_getenv,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_getenv_unsafe,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_setenv_unsafe,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_unsetenv_unsafe,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_qsort,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_bsearch,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_qsort_r,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_bsearch_r,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_abs,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_isalpha,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_isalnum,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_isblank,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_iscntrl,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_isdigit,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_isxdigit,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_ispunct,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_isspace,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_isupper,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_islower,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_isprint,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_isgraph,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_toupper,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_tolower,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_crc16,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_crc32,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_murmur3_32,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_memset4,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_memcmp,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_wcslen,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_wcsnlen,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_wcslcpy,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_wcslcat,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_wcsdup,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_wcsstr,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_wcsnstr,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_wcscmp,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_wcsncmp,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_wcscasecmp,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_wcsncasecmp,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_strlen,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_strnlen,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_strlcpy,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_utf8strlcpy,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_strlcat,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_strdup,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_strndup,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_strrev,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_strupr,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_strlwr,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_strchr,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_strrchr,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_strstr,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_strnstr,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_strcasestr,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_strtok_r,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_utf8strlen,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_utf8strnlen,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_itoa,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_uitoa,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_lltoa,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_ulltoa,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_atoi,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_atof,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_strtoll,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_strtoull,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_strtod,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_strcmp,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_strncmp,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_strcasecmp,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_strncasecmp,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_strpbrk,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_StepUTF8,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_StepBackUTF8,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_UCS4ToUTF8,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_srand,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_rand,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_randf,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_rand_bits,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_rand_r,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_randf_r,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_rand_bits_r,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_acos,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_acosf,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_asin,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_asinf,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_atan,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_atanf,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_atan2,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_atan2f,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_ceil,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_ceilf,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_copysign,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_copysignf,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_cos,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_cosf,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_exp,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_expf,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_fabs,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_fabsf,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_floor,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_floorf,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_trunc,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_truncf,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_fmod,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_fmodf,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_isinf,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_isinff,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_isnan,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_isnanf,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_log,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_logf,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_log10,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_log10f,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_modf,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_modff,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_pow,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_powf,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_round,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_roundf,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_scalbn,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_scalbnf,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_sin,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_sinf,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_sqrt,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_sqrtf,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_tan,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_tanf,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_iconv_open,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_iconv_close,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_iconv,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_iconv_string,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_size_mul_check_overflow_builtin,
  SDL3.Sys.Bindgen.Stdinc.Unsafe.sDL_size_add_check_overflow_builtin,
)
where

import HsBindgen.Runtime.LibC qualified
import HsBindgen.Runtime.PtrConst qualified as PtrConst
import HsBindgen.Runtime.Support qualified as BG
import HsBindgen.Runtime.Support.CAPI qualified
import SDL3.Sys.Bindgen.Stdinc

$( HsBindgen.Runtime.Support.CAPI.addCSource
     ( HsBindgen.Runtime.Support.CAPI.unlines
         [ "#include <SDL3/SDL_stdinc.h>"
         , "void *hs_bindgen_5bd8a699d72971c5 ("
         , "  size_t arg1"
         , ")"
         , "{"
         , "  return (SDL_malloc)(arg1);"
         , "}"
         , "void *hs_bindgen_08746ff05ca3003c ("
         , "  size_t arg1,"
         , "  size_t arg2"
         , ")"
         , "{"
         , "  return (SDL_calloc)(arg1, arg2);"
         , "}"
         , "void *hs_bindgen_0730e7e13356c626 ("
         , "  void *arg1,"
         , "  size_t arg2"
         , ")"
         , "{"
         , "  return (SDL_realloc)(arg1, arg2);"
         , "}"
         , "void hs_bindgen_22f31e5d111da6c1 ("
         , "  void *arg1"
         , ")"
         , "{"
         , "  (SDL_free)(arg1);"
         , "}"
         , "void hs_bindgen_f517f867f38f6071 ("
         , "  SDL_malloc_func *arg1,"
         , "  SDL_calloc_func *arg2,"
         , "  SDL_realloc_func *arg3,"
         , "  SDL_free_func *arg4"
         , ")"
         , "{"
         , "  (SDL_GetOriginalMemoryFunctions)(arg1, arg2, arg3, arg4);"
         , "}"
         , "void hs_bindgen_25189a0da3d426a6 ("
         , "  SDL_malloc_func *arg1,"
         , "  SDL_calloc_func *arg2,"
         , "  SDL_realloc_func *arg3,"
         , "  SDL_free_func *arg4"
         , ")"
         , "{"
         , "  (SDL_GetMemoryFunctions)(arg1, arg2, arg3, arg4);"
         , "}"
         , "_Bool hs_bindgen_226182971f75d2c0 ("
         , "  SDL_malloc_func arg1,"
         , "  SDL_calloc_func arg2,"
         , "  SDL_realloc_func arg3,"
         , "  SDL_free_func arg4"
         , ")"
         , "{"
         , "  return (SDL_SetMemoryFunctions)(arg1, arg2, arg3, arg4);"
         , "}"
         , "void *hs_bindgen_9900ed39a18caec5 ("
         , "  size_t arg1,"
         , "  size_t arg2"
         , ")"
         , "{"
         , "  return (SDL_aligned_alloc)(arg1, arg2);"
         , "}"
         , "void hs_bindgen_2bf7e303c1a730bf ("
         , "  void *arg1"
         , ")"
         , "{"
         , "  (SDL_aligned_free)(arg1);"
         , "}"
         , "signed int hs_bindgen_4528828ea69b3f8b (void)"
         , "{"
         , "  return (SDL_GetNumAllocations)();"
         , "}"
         , "SDL_Environment *hs_bindgen_e1f4a04ee814291a (void)"
         , "{"
         , "  return (SDL_GetEnvironment)();"
         , "}"
         , "SDL_Environment *hs_bindgen_e85a9062a561d535 ("
         , "  _Bool arg1"
         , ")"
         , "{"
         , "  return (SDL_CreateEnvironment)(arg1);"
         , "}"
         , "char const *hs_bindgen_5beeb06044229d5f ("
         , "  SDL_Environment *arg1,"
         , "  char const *arg2"
         , ")"
         , "{"
         , "  return (SDL_GetEnvironmentVariable)(arg1, arg2);"
         , "}"
         , "char **hs_bindgen_b31ecc5c3d715978 ("
         , "  SDL_Environment *arg1"
         , ")"
         , "{"
         , "  return (SDL_GetEnvironmentVariables)(arg1);"
         , "}"
         , "_Bool hs_bindgen_a9acd1c932154b24 ("
         , "  SDL_Environment *arg1,"
         , "  char const *arg2,"
         , "  char const *arg3,"
         , "  _Bool arg4"
         , ")"
         , "{"
         , "  return (SDL_SetEnvironmentVariable)(arg1, arg2, arg3, arg4);"
         , "}"
         , "_Bool hs_bindgen_c64095b9c616bfe0 ("
         , "  SDL_Environment *arg1,"
         , "  char const *arg2"
         , ")"
         , "{"
         , "  return (SDL_UnsetEnvironmentVariable)(arg1, arg2);"
         , "}"
         , "void hs_bindgen_099a6ae1ccd5370b ("
         , "  SDL_Environment *arg1"
         , ")"
         , "{"
         , "  (SDL_DestroyEnvironment)(arg1);"
         , "}"
         , "char const *hs_bindgen_bf38503a85842347 ("
         , "  char const *arg1"
         , ")"
         , "{"
         , "  return (SDL_getenv)(arg1);"
         , "}"
         , "char const *hs_bindgen_8bb86791a34eff6a ("
         , "  char const *arg1"
         , ")"
         , "{"
         , "  return (SDL_getenv_unsafe)(arg1);"
         , "}"
         , "signed int hs_bindgen_07289159390730ef ("
         , "  char const *arg1,"
         , "  char const *arg2,"
         , "  signed int arg3"
         , ")"
         , "{"
         , "  return (SDL_setenv_unsafe)(arg1, arg2, arg3);"
         , "}"
         , "signed int hs_bindgen_8eb1656d4bfcd1be ("
         , "  char const *arg1"
         , ")"
         , "{"
         , "  return (SDL_unsetenv_unsafe)(arg1);"
         , "}"
         , "void hs_bindgen_95192c7f785c4c45 ("
         , "  void *arg1,"
         , "  size_t arg2,"
         , "  size_t arg3,"
         , "  SDL_CompareCallback arg4"
         , ")"
         , "{"
         , "  (SDL_qsort)(arg1, arg2, arg3, arg4);"
         , "}"
         , "void *hs_bindgen_e3d85c2fcc0e0182 ("
         , "  void const *arg1,"
         , "  void const *arg2,"
         , "  size_t arg3,"
         , "  size_t arg4,"
         , "  SDL_CompareCallback arg5"
         , ")"
         , "{"
         , "  return (SDL_bsearch)(arg1, arg2, arg3, arg4, arg5);"
         , "}"
         , "void hs_bindgen_7a30995c664569a4 ("
         , "  void *arg1,"
         , "  size_t arg2,"
         , "  size_t arg3,"
         , "  SDL_CompareCallback_r arg4,"
         , "  void *arg5"
         , ")"
         , "{"
         , "  (SDL_qsort_r)(arg1, arg2, arg3, arg4, arg5);"
         , "}"
         , "void *hs_bindgen_57399b9b8aa9f8f0 ("
         , "  void const *arg1,"
         , "  void const *arg2,"
         , "  size_t arg3,"
         , "  size_t arg4,"
         , "  SDL_CompareCallback_r arg5,"
         , "  void *arg6"
         , ")"
         , "{"
         , "  return (SDL_bsearch_r)(arg1, arg2, arg3, arg4, arg5, arg6);"
         , "}"
         , "signed int hs_bindgen_a928603d6470ca50 ("
         , "  signed int arg1"
         , ")"
         , "{"
         , "  return (SDL_abs)(arg1);"
         , "}"
         , "signed int hs_bindgen_89185a009225cfaf ("
         , "  signed int arg1"
         , ")"
         , "{"
         , "  return (SDL_isalpha)(arg1);"
         , "}"
         , "signed int hs_bindgen_1ab6c2f3868de0bb ("
         , "  signed int arg1"
         , ")"
         , "{"
         , "  return (SDL_isalnum)(arg1);"
         , "}"
         , "signed int hs_bindgen_3c28b4a4af971951 ("
         , "  signed int arg1"
         , ")"
         , "{"
         , "  return (SDL_isblank)(arg1);"
         , "}"
         , "signed int hs_bindgen_13a0eb9bfa9faec7 ("
         , "  signed int arg1"
         , ")"
         , "{"
         , "  return (SDL_iscntrl)(arg1);"
         , "}"
         , "signed int hs_bindgen_9fae2f93c08cfbf0 ("
         , "  signed int arg1"
         , ")"
         , "{"
         , "  return (SDL_isdigit)(arg1);"
         , "}"
         , "signed int hs_bindgen_0f033c6150a762a3 ("
         , "  signed int arg1"
         , ")"
         , "{"
         , "  return (SDL_isxdigit)(arg1);"
         , "}"
         , "signed int hs_bindgen_9b835961c1753aa6 ("
         , "  signed int arg1"
         , ")"
         , "{"
         , "  return (SDL_ispunct)(arg1);"
         , "}"
         , "signed int hs_bindgen_37bfc6e46aee6fcc ("
         , "  signed int arg1"
         , ")"
         , "{"
         , "  return (SDL_isspace)(arg1);"
         , "}"
         , "signed int hs_bindgen_6a23210549f82553 ("
         , "  signed int arg1"
         , ")"
         , "{"
         , "  return (SDL_isupper)(arg1);"
         , "}"
         , "signed int hs_bindgen_4ef887be849a9002 ("
         , "  signed int arg1"
         , ")"
         , "{"
         , "  return (SDL_islower)(arg1);"
         , "}"
         , "signed int hs_bindgen_258633f7820b5c3c ("
         , "  signed int arg1"
         , ")"
         , "{"
         , "  return (SDL_isprint)(arg1);"
         , "}"
         , "signed int hs_bindgen_64e7a8597c7c9710 ("
         , "  signed int arg1"
         , ")"
         , "{"
         , "  return (SDL_isgraph)(arg1);"
         , "}"
         , "signed int hs_bindgen_c1347761ea69159d ("
         , "  signed int arg1"
         , ")"
         , "{"
         , "  return (SDL_toupper)(arg1);"
         , "}"
         , "signed int hs_bindgen_b3fecd41676fe4be ("
         , "  signed int arg1"
         , ")"
         , "{"
         , "  return (SDL_tolower)(arg1);"
         , "}"
         , "Uint16 hs_bindgen_35ff41be4e4da9d1 ("
         , "  Uint16 arg1,"
         , "  void const *arg2,"
         , "  size_t arg3"
         , ")"
         , "{"
         , "  return (SDL_crc16)(arg1, arg2, arg3);"
         , "}"
         , "Uint32 hs_bindgen_6755f946704473dc ("
         , "  Uint32 arg1,"
         , "  void const *arg2,"
         , "  size_t arg3"
         , ")"
         , "{"
         , "  return (SDL_crc32)(arg1, arg2, arg3);"
         , "}"
         , "Uint32 hs_bindgen_4538e03ee60f6976 ("
         , "  void const *arg1,"
         , "  size_t arg2,"
         , "  Uint32 arg3"
         , ")"
         , "{"
         , "  return (SDL_murmur3_32)(arg1, arg2, arg3);"
         , "}"
         , "void *hs_bindgen_006ad9913290aee0 ("
         , "  void *arg1,"
         , "  Uint32 arg2,"
         , "  size_t arg3"
         , ")"
         , "{"
         , "  return (SDL_memset4)(arg1, arg2, arg3);"
         , "}"
         , "signed int hs_bindgen_f8312f3094e9811f ("
         , "  void const *arg1,"
         , "  void const *arg2,"
         , "  size_t arg3"
         , ")"
         , "{"
         , "  return (SDL_memcmp)(arg1, arg2, arg3);"
         , "}"
         , "size_t hs_bindgen_7819cc3f05f6e767 ("
         , "  wchar_t const *arg1"
         , ")"
         , "{"
         , "  return (SDL_wcslen)(arg1);"
         , "}"
         , "size_t hs_bindgen_4d4c9962d27e8c57 ("
         , "  wchar_t const *arg1,"
         , "  size_t arg2"
         , ")"
         , "{"
         , "  return (SDL_wcsnlen)(arg1, arg2);"
         , "}"
         , "size_t hs_bindgen_6a63636fffe52a27 ("
         , "  wchar_t *arg1,"
         , "  wchar_t const *arg2,"
         , "  size_t arg3"
         , ")"
         , "{"
         , "  return (SDL_wcslcpy)(arg1, arg2, arg3);"
         , "}"
         , "size_t hs_bindgen_ae63311931250a61 ("
         , "  wchar_t *arg1,"
         , "  wchar_t const *arg2,"
         , "  size_t arg3"
         , ")"
         , "{"
         , "  return (SDL_wcslcat)(arg1, arg2, arg3);"
         , "}"
         , "wchar_t *hs_bindgen_0c56a99a680dde86 ("
         , "  wchar_t const *arg1"
         , ")"
         , "{"
         , "  return (SDL_wcsdup)(arg1);"
         , "}"
         , "wchar_t *hs_bindgen_0e15f64725300a1d ("
         , "  wchar_t const *arg1,"
         , "  wchar_t const *arg2"
         , ")"
         , "{"
         , "  return (SDL_wcsstr)(arg1, arg2);"
         , "}"
         , "wchar_t *hs_bindgen_ed81408c495114ac ("
         , "  wchar_t const *arg1,"
         , "  wchar_t const *arg2,"
         , "  size_t arg3"
         , ")"
         , "{"
         , "  return (SDL_wcsnstr)(arg1, arg2, arg3);"
         , "}"
         , "signed int hs_bindgen_523128c66baf772a ("
         , "  wchar_t const *arg1,"
         , "  wchar_t const *arg2"
         , ")"
         , "{"
         , "  return (SDL_wcscmp)(arg1, arg2);"
         , "}"
         , "signed int hs_bindgen_ae16252c87514b75 ("
         , "  wchar_t const *arg1,"
         , "  wchar_t const *arg2,"
         , "  size_t arg3"
         , ")"
         , "{"
         , "  return (SDL_wcsncmp)(arg1, arg2, arg3);"
         , "}"
         , "signed int hs_bindgen_2a1f0e71a040879b ("
         , "  wchar_t const *arg1,"
         , "  wchar_t const *arg2"
         , ")"
         , "{"
         , "  return (SDL_wcscasecmp)(arg1, arg2);"
         , "}"
         , "signed int hs_bindgen_1c13738568f12d1d ("
         , "  wchar_t const *arg1,"
         , "  wchar_t const *arg2,"
         , "  size_t arg3"
         , ")"
         , "{"
         , "  return (SDL_wcsncasecmp)(arg1, arg2, arg3);"
         , "}"
         , "size_t hs_bindgen_59a6bfea24e96b34 ("
         , "  char const *arg1"
         , ")"
         , "{"
         , "  return (SDL_strlen)(arg1);"
         , "}"
         , "size_t hs_bindgen_c8b4424317df84e9 ("
         , "  char const *arg1,"
         , "  size_t arg2"
         , ")"
         , "{"
         , "  return (SDL_strnlen)(arg1, arg2);"
         , "}"
         , "size_t hs_bindgen_e26f240b36c1f7f4 ("
         , "  char *arg1,"
         , "  char const *arg2,"
         , "  size_t arg3"
         , ")"
         , "{"
         , "  return (SDL_strlcpy)(arg1, arg2, arg3);"
         , "}"
         , "size_t hs_bindgen_a6570a6c65177caf ("
         , "  char *arg1,"
         , "  char const *arg2,"
         , "  size_t arg3"
         , ")"
         , "{"
         , "  return (SDL_utf8strlcpy)(arg1, arg2, arg3);"
         , "}"
         , "size_t hs_bindgen_6776d8c4c9824b69 ("
         , "  char *arg1,"
         , "  char const *arg2,"
         , "  size_t arg3"
         , ")"
         , "{"
         , "  return (SDL_strlcat)(arg1, arg2, arg3);"
         , "}"
         , "char *hs_bindgen_642470a5439764a1 ("
         , "  char const *arg1"
         , ")"
         , "{"
         , "  return (SDL_strdup)(arg1);"
         , "}"
         , "char *hs_bindgen_2d11135d4a4cd09d ("
         , "  char const *arg1,"
         , "  size_t arg2"
         , ")"
         , "{"
         , "  return (SDL_strndup)(arg1, arg2);"
         , "}"
         , "char *hs_bindgen_3e344b4dbd1fefd5 ("
         , "  char *arg1"
         , ")"
         , "{"
         , "  return (SDL_strrev)(arg1);"
         , "}"
         , "char *hs_bindgen_2a6a16beae86f690 ("
         , "  char *arg1"
         , ")"
         , "{"
         , "  return (SDL_strupr)(arg1);"
         , "}"
         , "char *hs_bindgen_d398f95cc6b941fb ("
         , "  char *arg1"
         , ")"
         , "{"
         , "  return (SDL_strlwr)(arg1);"
         , "}"
         , "char *hs_bindgen_ce84b72a37d721aa ("
         , "  char const *arg1,"
         , "  signed int arg2"
         , ")"
         , "{"
         , "  return (SDL_strchr)(arg1, arg2);"
         , "}"
         , "char *hs_bindgen_42f6725f3eb6c437 ("
         , "  char const *arg1,"
         , "  signed int arg2"
         , ")"
         , "{"
         , "  return (SDL_strrchr)(arg1, arg2);"
         , "}"
         , "char *hs_bindgen_4dd450b42cd71d7b ("
         , "  char const *arg1,"
         , "  char const *arg2"
         , ")"
         , "{"
         , "  return (SDL_strstr)(arg1, arg2);"
         , "}"
         , "char *hs_bindgen_84a9d060fbe6dadf ("
         , "  char const *arg1,"
         , "  char const *arg2,"
         , "  size_t arg3"
         , ")"
         , "{"
         , "  return (SDL_strnstr)(arg1, arg2, arg3);"
         , "}"
         , "char *hs_bindgen_81f801141b3ad731 ("
         , "  char const *arg1,"
         , "  char const *arg2"
         , ")"
         , "{"
         , "  return (SDL_strcasestr)(arg1, arg2);"
         , "}"
         , "char *hs_bindgen_409faece247c319b ("
         , "  char *arg1,"
         , "  char const *arg2,"
         , "  char **arg3"
         , ")"
         , "{"
         , "  return (SDL_strtok_r)(arg1, arg2, arg3);"
         , "}"
         , "size_t hs_bindgen_36470941402cdd53 ("
         , "  char const *arg1"
         , ")"
         , "{"
         , "  return (SDL_utf8strlen)(arg1);"
         , "}"
         , "size_t hs_bindgen_479082db51ecf46b ("
         , "  char const *arg1,"
         , "  size_t arg2"
         , ")"
         , "{"
         , "  return (SDL_utf8strnlen)(arg1, arg2);"
         , "}"
         , "char *hs_bindgen_c69b2ef36677f953 ("
         , "  signed int arg1,"
         , "  char *arg2,"
         , "  signed int arg3"
         , ")"
         , "{"
         , "  return (SDL_itoa)(arg1, arg2, arg3);"
         , "}"
         , "char *hs_bindgen_dbe69ee767be00c8 ("
         , "  unsigned int arg1,"
         , "  char *arg2,"
         , "  signed int arg3"
         , ")"
         , "{"
         , "  return (SDL_uitoa)(arg1, arg2, arg3);"
         , "}"
         , "char *hs_bindgen_94ca108dca07ec6f ("
         , "  signed long long arg1,"
         , "  char *arg2,"
         , "  signed int arg3"
         , ")"
         , "{"
         , "  return (SDL_lltoa)(arg1, arg2, arg3);"
         , "}"
         , "char *hs_bindgen_d122b88ccc45fe33 ("
         , "  unsigned long long arg1,"
         , "  char *arg2,"
         , "  signed int arg3"
         , ")"
         , "{"
         , "  return (SDL_ulltoa)(arg1, arg2, arg3);"
         , "}"
         , "signed int hs_bindgen_ca9f4297368b5437 ("
         , "  char const *arg1"
         , ")"
         , "{"
         , "  return (SDL_atoi)(arg1);"
         , "}"
         , "double hs_bindgen_81f2fcbff595d766 ("
         , "  char const *arg1"
         , ")"
         , "{"
         , "  return (SDL_atof)(arg1);"
         , "}"
         , "signed long long hs_bindgen_29424912342d9a55 ("
         , "  char const *arg1,"
         , "  char **arg2,"
         , "  signed int arg3"
         , ")"
         , "{"
         , "  return (SDL_strtoll)(arg1, arg2, arg3);"
         , "}"
         , "unsigned long long hs_bindgen_fe908f5a8d183e7b ("
         , "  char const *arg1,"
         , "  char **arg2,"
         , "  signed int arg3"
         , ")"
         , "{"
         , "  return (SDL_strtoull)(arg1, arg2, arg3);"
         , "}"
         , "double hs_bindgen_93115f1648467a21 ("
         , "  char const *arg1,"
         , "  char **arg2"
         , ")"
         , "{"
         , "  return (SDL_strtod)(arg1, arg2);"
         , "}"
         , "signed int hs_bindgen_1165e1ac637a910f ("
         , "  char const *arg1,"
         , "  char const *arg2"
         , ")"
         , "{"
         , "  return (SDL_strcmp)(arg1, arg2);"
         , "}"
         , "signed int hs_bindgen_6286679cc5d88e95 ("
         , "  char const *arg1,"
         , "  char const *arg2,"
         , "  size_t arg3"
         , ")"
         , "{"
         , "  return (SDL_strncmp)(arg1, arg2, arg3);"
         , "}"
         , "signed int hs_bindgen_592440e0cc89a66c ("
         , "  char const *arg1,"
         , "  char const *arg2"
         , ")"
         , "{"
         , "  return (SDL_strcasecmp)(arg1, arg2);"
         , "}"
         , "signed int hs_bindgen_9a7486257c6bf068 ("
         , "  char const *arg1,"
         , "  char const *arg2,"
         , "  size_t arg3"
         , ")"
         , "{"
         , "  return (SDL_strncasecmp)(arg1, arg2, arg3);"
         , "}"
         , "char *hs_bindgen_e53784dcceef6c88 ("
         , "  char const *arg1,"
         , "  char const *arg2"
         , ")"
         , "{"
         , "  return (SDL_strpbrk)(arg1, arg2);"
         , "}"
         , "Uint32 hs_bindgen_5010b6d322eef729 ("
         , "  char const **arg1,"
         , "  size_t *arg2"
         , ")"
         , "{"
         , "  return (SDL_StepUTF8)(arg1, arg2);"
         , "}"
         , "Uint32 hs_bindgen_e9d45c14c965c799 ("
         , "  char const *arg1,"
         , "  char const **arg2"
         , ")"
         , "{"
         , "  return (SDL_StepBackUTF8)(arg1, arg2);"
         , "}"
         , "char *hs_bindgen_2621d8f742eba582 ("
         , "  Uint32 arg1,"
         , "  char *arg2"
         , ")"
         , "{"
         , "  return (SDL_UCS4ToUTF8)(arg1, arg2);"
         , "}"
         , "void hs_bindgen_1620e07051837ddb ("
         , "  Uint64 arg1"
         , ")"
         , "{"
         , "  (SDL_srand)(arg1);"
         , "}"
         , "Sint32 hs_bindgen_bb32712cf4e3959c ("
         , "  Sint32 arg1"
         , ")"
         , "{"
         , "  return (SDL_rand)(arg1);"
         , "}"
         , "float hs_bindgen_4354197498dc7635 (void)"
         , "{"
         , "  return (SDL_randf)();"
         , "}"
         , "Uint32 hs_bindgen_eed752851bd8b3e2 (void)"
         , "{"
         , "  return (SDL_rand_bits)();"
         , "}"
         , "Sint32 hs_bindgen_e31222be551ae9d1 ("
         , "  Uint64 *arg1,"
         , "  Sint32 arg2"
         , ")"
         , "{"
         , "  return (SDL_rand_r)(arg1, arg2);"
         , "}"
         , "float hs_bindgen_b728fa521e1f33ba ("
         , "  Uint64 *arg1"
         , ")"
         , "{"
         , "  return (SDL_randf_r)(arg1);"
         , "}"
         , "Uint32 hs_bindgen_1779b3d1ac6c6ca0 ("
         , "  Uint64 *arg1"
         , ")"
         , "{"
         , "  return (SDL_rand_bits_r)(arg1);"
         , "}"
         , "double hs_bindgen_77d2b09de2f907bb ("
         , "  double arg1"
         , ")"
         , "{"
         , "  return (SDL_acos)(arg1);"
         , "}"
         , "float hs_bindgen_a7dfe79fdc884d97 ("
         , "  float arg1"
         , ")"
         , "{"
         , "  return (SDL_acosf)(arg1);"
         , "}"
         , "double hs_bindgen_c1c2c5b2424934f7 ("
         , "  double arg1"
         , ")"
         , "{"
         , "  return (SDL_asin)(arg1);"
         , "}"
         , "float hs_bindgen_c0162f35a592c4d6 ("
         , "  float arg1"
         , ")"
         , "{"
         , "  return (SDL_asinf)(arg1);"
         , "}"
         , "double hs_bindgen_62e948cecf885b31 ("
         , "  double arg1"
         , ")"
         , "{"
         , "  return (SDL_atan)(arg1);"
         , "}"
         , "float hs_bindgen_429e4b987b465ff9 ("
         , "  float arg1"
         , ")"
         , "{"
         , "  return (SDL_atanf)(arg1);"
         , "}"
         , "double hs_bindgen_dd25876f2db3e27f ("
         , "  double arg1,"
         , "  double arg2"
         , ")"
         , "{"
         , "  return (SDL_atan2)(arg1, arg2);"
         , "}"
         , "float hs_bindgen_8131501831457d98 ("
         , "  float arg1,"
         , "  float arg2"
         , ")"
         , "{"
         , "  return (SDL_atan2f)(arg1, arg2);"
         , "}"
         , "double hs_bindgen_6654a059aee78106 ("
         , "  double arg1"
         , ")"
         , "{"
         , "  return (SDL_ceil)(arg1);"
         , "}"
         , "float hs_bindgen_ad644f683da406f9 ("
         , "  float arg1"
         , ")"
         , "{"
         , "  return (SDL_ceilf)(arg1);"
         , "}"
         , "double hs_bindgen_8091ddede7c04cbc ("
         , "  double arg1,"
         , "  double arg2"
         , ")"
         , "{"
         , "  return (SDL_copysign)(arg1, arg2);"
         , "}"
         , "float hs_bindgen_b3f4ceb6b2fe20ee ("
         , "  float arg1,"
         , "  float arg2"
         , ")"
         , "{"
         , "  return (SDL_copysignf)(arg1, arg2);"
         , "}"
         , "double hs_bindgen_a3469aec056551e2 ("
         , "  double arg1"
         , ")"
         , "{"
         , "  return (SDL_cos)(arg1);"
         , "}"
         , "float hs_bindgen_905fd229e6d8b35e ("
         , "  float arg1"
         , ")"
         , "{"
         , "  return (SDL_cosf)(arg1);"
         , "}"
         , "double hs_bindgen_1512e406037d12ac ("
         , "  double arg1"
         , ")"
         , "{"
         , "  return (SDL_exp)(arg1);"
         , "}"
         , "float hs_bindgen_d3dd134efe3abfff ("
         , "  float arg1"
         , ")"
         , "{"
         , "  return (SDL_expf)(arg1);"
         , "}"
         , "double hs_bindgen_52ba4ac175596d0a ("
         , "  double arg1"
         , ")"
         , "{"
         , "  return (SDL_fabs)(arg1);"
         , "}"
         , "float hs_bindgen_184b19c145435e41 ("
         , "  float arg1"
         , ")"
         , "{"
         , "  return (SDL_fabsf)(arg1);"
         , "}"
         , "double hs_bindgen_f490c8eee1698a66 ("
         , "  double arg1"
         , ")"
         , "{"
         , "  return (SDL_floor)(arg1);"
         , "}"
         , "float hs_bindgen_2f0b4572dde60cf4 ("
         , "  float arg1"
         , ")"
         , "{"
         , "  return (SDL_floorf)(arg1);"
         , "}"
         , "double hs_bindgen_0babb20dade49b7a ("
         , "  double arg1"
         , ")"
         , "{"
         , "  return (SDL_trunc)(arg1);"
         , "}"
         , "float hs_bindgen_90bf99d352a2662e ("
         , "  float arg1"
         , ")"
         , "{"
         , "  return (SDL_truncf)(arg1);"
         , "}"
         , "double hs_bindgen_01e3fd06ce04c71f ("
         , "  double arg1,"
         , "  double arg2"
         , ")"
         , "{"
         , "  return (SDL_fmod)(arg1, arg2);"
         , "}"
         , "float hs_bindgen_d31c39dbd23d1312 ("
         , "  float arg1,"
         , "  float arg2"
         , ")"
         , "{"
         , "  return (SDL_fmodf)(arg1, arg2);"
         , "}"
         , "signed int hs_bindgen_a7c939d2e78d66af ("
         , "  double arg1"
         , ")"
         , "{"
         , "  return (SDL_isinf)(arg1);"
         , "}"
         , "signed int hs_bindgen_dd1421aaa48b6683 ("
         , "  float arg1"
         , ")"
         , "{"
         , "  return (SDL_isinff)(arg1);"
         , "}"
         , "signed int hs_bindgen_8b37e78060d7faba ("
         , "  double arg1"
         , ")"
         , "{"
         , "  return (SDL_isnan)(arg1);"
         , "}"
         , "signed int hs_bindgen_a7fc9d37cba1e7fb ("
         , "  float arg1"
         , ")"
         , "{"
         , "  return (SDL_isnanf)(arg1);"
         , "}"
         , "double hs_bindgen_e20d665d8e9d64dc ("
         , "  double arg1"
         , ")"
         , "{"
         , "  return (SDL_log)(arg1);"
         , "}"
         , "float hs_bindgen_7e096c5f793dcab0 ("
         , "  float arg1"
         , ")"
         , "{"
         , "  return (SDL_logf)(arg1);"
         , "}"
         , "double hs_bindgen_923087147ca0e620 ("
         , "  double arg1"
         , ")"
         , "{"
         , "  return (SDL_log10)(arg1);"
         , "}"
         , "float hs_bindgen_bfd8d2db495dd53c ("
         , "  float arg1"
         , ")"
         , "{"
         , "  return (SDL_log10f)(arg1);"
         , "}"
         , "double hs_bindgen_b899f8ade3afe831 ("
         , "  double arg1,"
         , "  double *arg2"
         , ")"
         , "{"
         , "  return (SDL_modf)(arg1, arg2);"
         , "}"
         , "float hs_bindgen_6ff7524556040016 ("
         , "  float arg1,"
         , "  float *arg2"
         , ")"
         , "{"
         , "  return (SDL_modff)(arg1, arg2);"
         , "}"
         , "double hs_bindgen_fd54b81ef06bf15c ("
         , "  double arg1,"
         , "  double arg2"
         , ")"
         , "{"
         , "  return (SDL_pow)(arg1, arg2);"
         , "}"
         , "float hs_bindgen_e6e1cafad3d1ca48 ("
         , "  float arg1,"
         , "  float arg2"
         , ")"
         , "{"
         , "  return (SDL_powf)(arg1, arg2);"
         , "}"
         , "double hs_bindgen_263d784275f69beb ("
         , "  double arg1"
         , ")"
         , "{"
         , "  return (SDL_round)(arg1);"
         , "}"
         , "float hs_bindgen_11783f7b112ca4ce ("
         , "  float arg1"
         , ")"
         , "{"
         , "  return (SDL_roundf)(arg1);"
         , "}"
         , "double hs_bindgen_e6bb2ac10b5df120 ("
         , "  double arg1,"
         , "  signed int arg2"
         , ")"
         , "{"
         , "  return (SDL_scalbn)(arg1, arg2);"
         , "}"
         , "float hs_bindgen_98b72e0135481fa6 ("
         , "  float arg1,"
         , "  signed int arg2"
         , ")"
         , "{"
         , "  return (SDL_scalbnf)(arg1, arg2);"
         , "}"
         , "double hs_bindgen_7f63dcf686d5381e ("
         , "  double arg1"
         , ")"
         , "{"
         , "  return (SDL_sin)(arg1);"
         , "}"
         , "float hs_bindgen_3b77259c6cddba0e ("
         , "  float arg1"
         , ")"
         , "{"
         , "  return (SDL_sinf)(arg1);"
         , "}"
         , "double hs_bindgen_911bffe699be4bcc ("
         , "  double arg1"
         , ")"
         , "{"
         , "  return (SDL_sqrt)(arg1);"
         , "}"
         , "float hs_bindgen_44ac9f7898a32796 ("
         , "  float arg1"
         , ")"
         , "{"
         , "  return (SDL_sqrtf)(arg1);"
         , "}"
         , "double hs_bindgen_aece2559e5dc0392 ("
         , "  double arg1"
         , ")"
         , "{"
         , "  return (SDL_tan)(arg1);"
         , "}"
         , "float hs_bindgen_c528bf7014ccff4b ("
         , "  float arg1"
         , ")"
         , "{"
         , "  return (SDL_tanf)(arg1);"
         , "}"
         , "SDL_iconv_t hs_bindgen_f0bd929aee0b42ea ("
         , "  char const *arg1,"
         , "  char const *arg2"
         , ")"
         , "{"
         , "  return (SDL_iconv_open)(arg1, arg2);"
         , "}"
         , "signed int hs_bindgen_3f715b186320f23e ("
         , "  SDL_iconv_t arg1"
         , ")"
         , "{"
         , "  return (SDL_iconv_close)(arg1);"
         , "}"
         , "size_t hs_bindgen_97b150fcf3a8acd6 ("
         , "  SDL_iconv_t arg1,"
         , "  char const **arg2,"
         , "  size_t *arg3,"
         , "  char **arg4,"
         , "  size_t *arg5"
         , ")"
         , "{"
         , "  return (SDL_iconv)(arg1, arg2, arg3, arg4, arg5);"
         , "}"
         , "char *hs_bindgen_75bcf8b9f2da9e0a ("
         , "  char const *arg1,"
         , "  char const *arg2,"
         , "  char const *arg3,"
         , "  size_t arg4"
         , ")"
         , "{"
         , "  return (SDL_iconv_string)(arg1, arg2, arg3, arg4);"
         , "}"
         , "_Bool hs_bindgen_51dba5ddaea9f2e4 ("
         , "  size_t arg1,"
         , "  size_t arg2,"
         , "  size_t *arg3"
         , ")"
         , "{"
         , "  return (SDL_size_mul_check_overflow_builtin)(arg1, arg2, arg3);"
         , "}"
         , "_Bool hs_bindgen_7509bdb3d2cd84da ("
         , "  size_t arg1,"
         , "  size_t arg2,"
         , "  size_t *arg3"
         , ")"
         , "{"
         , "  return (SDL_size_add_check_overflow_builtin)(arg1, arg2, arg3);"
         , "}"
         ]
     )
 )

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_malloc@
foreign import ccall unsafe "hs_bindgen_5bd8a699d72971c5"
  hs_bindgen_5bd8a699d72971c5_base
    :: BG.Word64
    -> IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_malloc@
hs_bindgen_5bd8a699d72971c5
  :: HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr BG.Void)
hs_bindgen_5bd8a699d72971c5 =
  BG.fromFFIType hs_bindgen_5bd8a699d72971c5_base

-- | Allocate uninitialized memory.
--
--     The allocated memory returned by this function must be freed with @SDL_free()@.
--
--     If @size@ is 0, it will be set to 1.
--
--     If the allocation is successful, the returned pointer is guaranteed to be aligned to either the /fundamental alignment/ (@alignof(max_align_t)@ in C11 and later) or @2 * sizeof(void *)@, whichever is smaller. Use @SDL_aligned_alloc()@ if you need to allocate memory aligned to an alignment greater than this guarantee.
--
--     [Returns]: a pointer to the allocated memory, or NULL if allocation failed.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_free', SDL_calloc, SDL_realloc, 'sDL_aligned_alloc'
--
--     [C declaration]: @SDL_malloc@, defined at @SDL3\/SDL_stdinc.h 1341:47@
sDL_malloc
  :: HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@size@]: the size to allocate.
  -> IO (BG.Ptr BG.Void)
sDL_malloc = hs_bindgen_5bd8a699d72971c5

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_calloc@
foreign import ccall unsafe "hs_bindgen_08746ff05ca3003c"
  hs_bindgen_08746ff05ca3003c_base
    :: BG.Word64
    -> BG.Word64
    -> IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_calloc@
hs_bindgen_08746ff05ca3003c
  :: HsBindgen.Runtime.LibC.CSize
  -> HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr BG.Void)
hs_bindgen_08746ff05ca3003c =
  BG.fromFFIType hs_bindgen_08746ff05ca3003c_base

-- | [C declaration]: @SDL_calloc@, defined at @SDL3\/SDL_stdinc.h 1366:69@
sDL_calloc
  :: HsBindgen.Runtime.LibC.CSize
  -- ^ [C declaration]: @nmemb@
  -> HsBindgen.Runtime.LibC.CSize
  -- ^ [C declaration]: @size@
  -> IO (BG.Ptr BG.Void)
sDL_calloc = hs_bindgen_08746ff05ca3003c

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_realloc@
foreign import ccall unsafe "hs_bindgen_0730e7e13356c626"
  hs_bindgen_0730e7e13356c626_base
    :: BG.Ptr BG.Void
    -> BG.Word64
    -> IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_realloc@
hs_bindgen_0730e7e13356c626
  :: BG.Ptr BG.Void
  -> HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr BG.Void)
hs_bindgen_0730e7e13356c626 =
  BG.fromFFIType hs_bindgen_0730e7e13356c626_base

-- | [C declaration]: @SDL_realloc@, defined at @SDL3\/SDL_stdinc.h 1406:54@
sDL_realloc
  :: BG.Ptr BG.Void
  -- ^ [C declaration]: @mem@
  -> HsBindgen.Runtime.LibC.CSize
  -- ^ [C declaration]: @size@
  -> IO (BG.Ptr BG.Void)
sDL_realloc = hs_bindgen_0730e7e13356c626

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_free@
foreign import ccall unsafe "hs_bindgen_22f31e5d111da6c1"
  hs_bindgen_22f31e5d111da6c1_base
    :: BG.Ptr BG.Void
    -> IO ()

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_free@
hs_bindgen_22f31e5d111da6c1
  :: BG.Ptr BG.Void
  -> IO ()
hs_bindgen_22f31e5d111da6c1 =
  BG.fromFFIType hs_bindgen_22f31e5d111da6c1_base

-- | Free allocated memory.
--
--     The pointer is no longer valid after this call and cannot be dereferenced anymore.
--
--     If @mem@ is NULL, this function does nothing.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_malloc', SDL_calloc, SDL_realloc
--
--     [C declaration]: @SDL_free@, defined at @SDL3\/SDL_stdinc.h 1426:34@
sDL_free
  :: BG.Ptr BG.Void
  -- ^
  --
  --           [@mem@]: a pointer to allocated memory, or NULL.
  -> IO ()
sDL_free = hs_bindgen_22f31e5d111da6c1

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_GetOriginalMemoryFunctions@
foreign import ccall unsafe "hs_bindgen_f517f867f38f6071"
  hs_bindgen_f517f867f38f6071_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> IO ()

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_GetOriginalMemoryFunctions@
hs_bindgen_f517f867f38f6071
  :: BG.Ptr SDL_malloc_func
  -> BG.Ptr SDL_calloc_func
  -> BG.Ptr SDL_realloc_func
  -> BG.Ptr SDL_free_func
  -> IO ()
hs_bindgen_f517f867f38f6071 =
  BG.fromFFIType hs_bindgen_f517f867f38f6071_base

-- | Get the original set of SDL memory functions.
--
--     This is what SDL_malloc and friends will use by default, if there has been no call to SDL_SetMemoryFunctions. This is not necessarily using the C runtime\'s @malloc@ functions behind the scenes! Different platforms and build configurations might do any number of unexpected things.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_GetOriginalMemoryFunctions@, defined at @SDL3\/SDL_stdinc.h 1524:34@
sDL_GetOriginalMemoryFunctions
  :: BG.Ptr SDL_malloc_func
  -- ^
  --
  --           [@malloc_func@]: filled with malloc function.
  -> BG.Ptr SDL_calloc_func
  -- ^
  --
  --           [@calloc_func@]: filled with calloc function.
  -> BG.Ptr SDL_realloc_func
  -- ^
  --
  --           [@realloc_func@]: filled with realloc function.
  -> BG.Ptr SDL_free_func
  -- ^
  --
  --           [@free_func@]: filled with free function.
  -> IO ()
sDL_GetOriginalMemoryFunctions =
  hs_bindgen_f517f867f38f6071

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_GetMemoryFunctions@
foreign import ccall unsafe "hs_bindgen_25189a0da3d426a6"
  hs_bindgen_25189a0da3d426a6_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> IO ()

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_GetMemoryFunctions@
hs_bindgen_25189a0da3d426a6
  :: BG.Ptr SDL_malloc_func
  -> BG.Ptr SDL_calloc_func
  -> BG.Ptr SDL_realloc_func
  -> BG.Ptr SDL_free_func
  -> IO ()
hs_bindgen_25189a0da3d426a6 =
  BG.fromFFIType hs_bindgen_25189a0da3d426a6_base

-- | Get the current set of SDL memory functions.
--
--     [Thread safety]: This does not hold a lock, so do not call this in the unlikely event of a background thread calling SDL_SetMemoryFunctions simultaneously.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_SetMemoryFunctions', 'sDL_GetOriginalMemoryFunctions'
--
--     [C declaration]: @SDL_GetMemoryFunctions@, defined at @SDL3\/SDL_stdinc.h 1546:34@
sDL_GetMemoryFunctions
  :: BG.Ptr SDL_malloc_func
  -- ^
  --
  --           [@malloc_func@]: filled with malloc function.
  -> BG.Ptr SDL_calloc_func
  -- ^
  --
  --           [@calloc_func@]: filled with calloc function.
  -> BG.Ptr SDL_realloc_func
  -- ^
  --
  --           [@realloc_func@]: filled with realloc function.
  -> BG.Ptr SDL_free_func
  -- ^
  --
  --           [@free_func@]: filled with free function.
  -> IO ()
sDL_GetMemoryFunctions = hs_bindgen_25189a0da3d426a6

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_SetMemoryFunctions@
foreign import ccall unsafe "hs_bindgen_226182971f75d2c0"
  hs_bindgen_226182971f75d2c0_base
    :: BG.FunPtr BG.Void
    -> BG.FunPtr BG.Void
    -> BG.FunPtr BG.Void
    -> BG.FunPtr BG.Void
    -> IO BG.Word8

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_SetMemoryFunctions@
hs_bindgen_226182971f75d2c0
  :: SDL_malloc_func
  -> SDL_calloc_func
  -> SDL_realloc_func
  -> SDL_free_func
  -> IO BG.CBool
hs_bindgen_226182971f75d2c0 =
  BG.fromFFIType hs_bindgen_226182971f75d2c0_base

-- | Replace SDL\'s memory allocation functions with a custom set.
--
--     It is not safe to call this function once any allocations have been made, as future calls to SDL_free will use the new allocator, even if they came from an SDL_malloc made with the old one!
--
--     If used, usually this needs to be the first call made into the SDL library, if not the very first thing done at program startup time.
--
--     [Returns]: true on success or false on failure; call SDL_GetError() for more information.
--
--     [Thread safety]: It is safe to call this function from any thread, but one should not replace the memory functions once any allocations are made!
--
--     @since 3.2.0
--
--     [See also]: 'sDL_GetMemoryFunctions', 'sDL_GetOriginalMemoryFunctions'
--
--     [C declaration]: @SDL_SetMemoryFunctions@, defined at @SDL3\/SDL_stdinc.h 1577:34@
sDL_SetMemoryFunctions
  :: SDL_malloc_func
  -- ^
  --
  --           [@malloc_func@]: custom malloc function.
  -> SDL_calloc_func
  -- ^
  --
  --           [@calloc_func@]: custom calloc function.
  -> SDL_realloc_func
  -- ^
  --
  --           [@realloc_func@]: custom realloc function.
  -> SDL_free_func
  -- ^
  --
  --           [@free_func@]: custom free function.
  -> IO BG.CBool
sDL_SetMemoryFunctions = hs_bindgen_226182971f75d2c0

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_aligned_alloc@
foreign import ccall unsafe "hs_bindgen_9900ed39a18caec5"
  hs_bindgen_9900ed39a18caec5_base
    :: BG.Word64
    -> BG.Word64
    -> IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_aligned_alloc@
hs_bindgen_9900ed39a18caec5
  :: HsBindgen.Runtime.LibC.CSize
  -> HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr BG.Void)
hs_bindgen_9900ed39a18caec5 =
  BG.fromFFIType hs_bindgen_9900ed39a18caec5_base

-- | Allocate memory aligned to a specific alignment.
--
--     The memory returned by this function must be freed with @SDL_aligned_free()@, /not/ @SDL_free()@.
--
--     If @alignment@ is less than the size of @void *@, it will be increased to match that.
--
--     The returned memory address will be a multiple of the alignment value, and the size of the memory allocated will be a multiple of the alignment value.
--
--     [Returns]: a pointer to the aligned memory, or NULL if allocation failed.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_aligned_free'
--
--     [C declaration]: @SDL_aligned_alloc@, defined at @SDL3\/SDL_stdinc.h 1604:47@
sDL_aligned_alloc
  :: HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@alignment@]: the alignment of the memory.
  -> HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@size@]: the size to allocate.
  -> IO (BG.Ptr BG.Void)
sDL_aligned_alloc = hs_bindgen_9900ed39a18caec5

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_aligned_free@
foreign import ccall unsafe "hs_bindgen_2bf7e303c1a730bf"
  hs_bindgen_2bf7e303c1a730bf_base
    :: BG.Ptr BG.Void
    -> IO ()

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_aligned_free@
hs_bindgen_2bf7e303c1a730bf
  :: BG.Ptr BG.Void
  -> IO ()
hs_bindgen_2bf7e303c1a730bf =
  BG.fromFFIType hs_bindgen_2bf7e303c1a730bf_base

-- | Free memory allocated by @SDL_aligned_alloc()@.
--
--     The pointer is no longer valid after this call and cannot be dereferenced anymore.
--
--     If @mem@ is NULL, this function does nothing.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_aligned_alloc'
--
--     [C declaration]: @SDL_aligned_free@, defined at @SDL3\/SDL_stdinc.h 1622:34@
sDL_aligned_free
  :: BG.Ptr BG.Void
  -- ^
  --
  --           [@mem@]: a pointer previously returned by @SDL_aligned_alloc()@, or NULL.
  -> IO ()
sDL_aligned_free = hs_bindgen_2bf7e303c1a730bf

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_GetNumAllocations@
foreign import ccall unsafe "hs_bindgen_4528828ea69b3f8b"
  hs_bindgen_4528828ea69b3f8b_base
    :: IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_GetNumAllocations@
hs_bindgen_4528828ea69b3f8b :: IO BG.CInt
hs_bindgen_4528828ea69b3f8b =
  BG.fromFFIType hs_bindgen_4528828ea69b3f8b_base

-- | Get the number of outstanding (unfreed) allocations.
--
--     [Returns]: the number of allocations or -1 if allocation counting is disabled.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_GetNumAllocations@, defined at @SDL3\/SDL_stdinc.h 1634:33@
sDL_GetNumAllocations :: IO BG.CInt
sDL_GetNumAllocations = hs_bindgen_4528828ea69b3f8b

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_GetEnvironment@
foreign import ccall unsafe "hs_bindgen_e1f4a04ee814291a"
  hs_bindgen_e1f4a04ee814291a_base
    :: IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_GetEnvironment@
hs_bindgen_e1f4a04ee814291a :: IO (BG.Ptr SDL_Environment)
hs_bindgen_e1f4a04ee814291a =
  BG.fromFFIType hs_bindgen_e1f4a04ee814291a_base

-- | Get the process environment.
--
--     This is initialized at application start and is not affected by setenv() and unsetenv() calls after that point. Use @SDL_SetEnvironmentVariable()@ and @SDL_UnsetEnvironmentVariable()@ if you want to modify this environment, or @SDL_setenv_unsafe()@ or @SDL_unsetenv_unsafe()@ if you want changes to persist in the C runtime environment after SDL_Quit().
--
--     [Returns]: a pointer to the environment for the process or NULL on failure; call SDL_GetError() for more information.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_GetEnvironmentVariable', 'sDL_GetEnvironmentVariables', 'sDL_SetEnvironmentVariable', 'sDL_UnsetEnvironmentVariable'
--
--     [C declaration]: @SDL_GetEnvironment@, defined at @SDL3\/SDL_stdinc.h 1672:47@
sDL_GetEnvironment :: IO (BG.Ptr SDL_Environment)
sDL_GetEnvironment = hs_bindgen_e1f4a04ee814291a

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_CreateEnvironment@
foreign import ccall unsafe "hs_bindgen_e85a9062a561d535"
  hs_bindgen_e85a9062a561d535_base
    :: BG.Word8
    -> IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_CreateEnvironment@
hs_bindgen_e85a9062a561d535
  :: BG.CBool
  -> IO (BG.Ptr SDL_Environment)
hs_bindgen_e85a9062a561d535 =
  BG.fromFFIType hs_bindgen_e85a9062a561d535_base

-- | Create a set of environment variables
--
--     [Returns]: a pointer to the new environment or NULL on failure; call SDL_GetError() for more information.
--
--     [Thread safety]: If @populated@ is false, it is safe to call this function from any thread, otherwise it is safe if no other threads are calling setenv() or unsetenv()
--
--     @since 3.2.0
--
--     [See also]: 'sDL_GetEnvironmentVariable', 'sDL_GetEnvironmentVariables', 'sDL_SetEnvironmentVariable', 'sDL_UnsetEnvironmentVariable', 'sDL_DestroyEnvironment'
--
--     [C declaration]: @SDL_CreateEnvironment@, defined at @SDL3\/SDL_stdinc.h 1694:47@
sDL_CreateEnvironment
  :: BG.CBool
  -- ^
  --
  --           [@populated@]: true to initialize it from the C runtime environment, false to create an empty environment.
  -> IO (BG.Ptr SDL_Environment)
sDL_CreateEnvironment = hs_bindgen_e85a9062a561d535

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_GetEnvironmentVariable@
foreign import ccall unsafe "hs_bindgen_5beeb06044229d5f"
  hs_bindgen_5beeb06044229d5f_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_GetEnvironmentVariable@
hs_bindgen_5beeb06044229d5f
  :: BG.Ptr SDL_Environment
  -> PtrConst.PtrConst BG.CChar
  -> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_5beeb06044229d5f =
  BG.fromFFIType hs_bindgen_5beeb06044229d5f_base

-- | Get the value of a variable in the environment.
--
--     [Returns]: a pointer to the value of the variable or NULL if it can\'t be found.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_GetEnvironment', 'sDL_CreateEnvironment', 'sDL_GetEnvironmentVariables', 'sDL_SetEnvironmentVariable', 'sDL_UnsetEnvironmentVariable'
--
--     [C declaration]: @SDL_GetEnvironmentVariable@, defined at @SDL3\/SDL_stdinc.h 1714:42@
sDL_GetEnvironmentVariable
  :: BG.Ptr SDL_Environment
  -- ^
  --
  --           [@env@]: the environment to query.
  -> PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@name@]: the name of the variable to get.
  -> IO (PtrConst.PtrConst BG.CChar)
sDL_GetEnvironmentVariable =
  hs_bindgen_5beeb06044229d5f

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_GetEnvironmentVariables@
foreign import ccall unsafe "hs_bindgen_b31ecc5c3d715978"
  hs_bindgen_b31ecc5c3d715978_base
    :: BG.Ptr BG.Void
    -> IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_GetEnvironmentVariables@
hs_bindgen_b31ecc5c3d715978
  :: BG.Ptr SDL_Environment
  -> IO (BG.Ptr (BG.Ptr BG.CChar))
hs_bindgen_b31ecc5c3d715978 =
  BG.fromFFIType hs_bindgen_b31ecc5c3d715978_base

-- | Get all variables in the environment.
--
--     [Returns]: a NULL terminated array of pointers to environment variables in the form \"variable=value\" or NULL on failure; call SDL_GetError() for more information. This is a single allocation that should be freed with @SDL_free()@ when it is no longer needed.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_GetEnvironment', 'sDL_CreateEnvironment', 'sDL_GetEnvironmentVariables', 'sDL_SetEnvironmentVariable', 'sDL_UnsetEnvironmentVariable'
--
--     [C declaration]: @SDL_GetEnvironmentVariables@, defined at @SDL3\/SDL_stdinc.h 1735:37@
sDL_GetEnvironmentVariables
  :: BG.Ptr SDL_Environment
  -- ^
  --
  --           [@env@]: the environment to query.
  -> IO (BG.Ptr (BG.Ptr BG.CChar))
sDL_GetEnvironmentVariables =
  hs_bindgen_b31ecc5c3d715978

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_SetEnvironmentVariable@
foreign import ccall unsafe "hs_bindgen_a9acd1c932154b24"
  hs_bindgen_a9acd1c932154b24_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> BG.Word8
    -> IO BG.Word8

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_SetEnvironmentVariable@
hs_bindgen_a9acd1c932154b24
  :: BG.Ptr SDL_Environment
  -> PtrConst.PtrConst BG.CChar
  -> PtrConst.PtrConst BG.CChar
  -> BG.CBool
  -> IO BG.CBool
hs_bindgen_a9acd1c932154b24 =
  BG.fromFFIType hs_bindgen_a9acd1c932154b24_base

-- | Set the value of a variable in the environment.
--
--     [Returns]: true on success or false on failure; call SDL_GetError() for more information.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_GetEnvironment', 'sDL_CreateEnvironment', 'sDL_GetEnvironmentVariable', 'sDL_GetEnvironmentVariables', 'sDL_UnsetEnvironmentVariable'
--
--     [C declaration]: @SDL_SetEnvironmentVariable@, defined at @SDL3\/SDL_stdinc.h 1759:34@
sDL_SetEnvironmentVariable
  :: BG.Ptr SDL_Environment
  -- ^
  --
  --           [@env@]: the environment to modify.
  -> PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@name@]: the name of the variable to set.
  -> PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@value@]: the value of the variable to set.
  -> BG.CBool
  -- ^
  --
  --           [@overwrite@]: true to overwrite the variable if it exists, false to return success without setting the variable if it already exists.
  -> IO BG.CBool
sDL_SetEnvironmentVariable =
  hs_bindgen_a9acd1c932154b24

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_UnsetEnvironmentVariable@
foreign import ccall unsafe "hs_bindgen_c64095b9c616bfe0"
  hs_bindgen_c64095b9c616bfe0_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> IO BG.Word8

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_UnsetEnvironmentVariable@
hs_bindgen_c64095b9c616bfe0
  :: BG.Ptr SDL_Environment
  -> PtrConst.PtrConst BG.CChar
  -> IO BG.CBool
hs_bindgen_c64095b9c616bfe0 =
  BG.fromFFIType hs_bindgen_c64095b9c616bfe0_base

-- | Clear a variable from the environment.
--
--     [Returns]: true on success or false on failure; call SDL_GetError() for more information.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_GetEnvironment', 'sDL_CreateEnvironment', 'sDL_GetEnvironmentVariable', 'sDL_GetEnvironmentVariables', 'sDL_SetEnvironmentVariable', 'sDL_UnsetEnvironmentVariable'
--
--     [C declaration]: @SDL_UnsetEnvironmentVariable@, defined at @SDL3\/SDL_stdinc.h 1780:34@
sDL_UnsetEnvironmentVariable
  :: BG.Ptr SDL_Environment
  -- ^
  --
  --           [@env@]: the environment to modify.
  -> PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@name@]: the name of the variable to unset.
  -> IO BG.CBool
sDL_UnsetEnvironmentVariable =
  hs_bindgen_c64095b9c616bfe0

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_DestroyEnvironment@
foreign import ccall unsafe "hs_bindgen_099a6ae1ccd5370b"
  hs_bindgen_099a6ae1ccd5370b_base
    :: BG.Ptr BG.Void
    -> IO ()

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_DestroyEnvironment@
hs_bindgen_099a6ae1ccd5370b
  :: BG.Ptr SDL_Environment
  -> IO ()
hs_bindgen_099a6ae1ccd5370b =
  BG.fromFFIType hs_bindgen_099a6ae1ccd5370b_base

-- | Destroy a set of environment variables.
--
--     [Thread safety]: It is safe to call this function from any thread, as long as the environment is no longer in use.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_CreateEnvironment'
--
--     [C declaration]: @SDL_DestroyEnvironment@, defined at @SDL3\/SDL_stdinc.h 1794:34@
sDL_DestroyEnvironment
  :: BG.Ptr SDL_Environment
  -- ^
  --
  --           [@env@]: the environment to destroy.
  -> IO ()
sDL_DestroyEnvironment = hs_bindgen_099a6ae1ccd5370b

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_getenv@
foreign import ccall unsafe "hs_bindgen_bf38503a85842347"
  hs_bindgen_bf38503a85842347_base
    :: BG.Ptr BG.Void
    -> IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_getenv@
hs_bindgen_bf38503a85842347
  :: PtrConst.PtrConst BG.CChar
  -> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_bf38503a85842347 =
  BG.fromFFIType hs_bindgen_bf38503a85842347_base

-- | Get the value of a variable in the environment.
--
--     This function uses SDL\'s cached copy of the environment and is thread-safe.
--
--     [Returns]: a pointer to the value of the variable or NULL if it can\'t be found.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_getenv@, defined at @SDL3\/SDL_stdinc.h 1809:42@
sDL_getenv
  :: PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@name@]: the name of the variable to get.
  -> IO (PtrConst.PtrConst BG.CChar)
sDL_getenv = hs_bindgen_bf38503a85842347

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_getenv_unsafe@
foreign import ccall unsafe "hs_bindgen_8bb86791a34eff6a"
  hs_bindgen_8bb86791a34eff6a_base
    :: BG.Ptr BG.Void
    -> IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_getenv_unsafe@
hs_bindgen_8bb86791a34eff6a
  :: PtrConst.PtrConst BG.CChar
  -> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_8bb86791a34eff6a =
  BG.fromFFIType hs_bindgen_8bb86791a34eff6a_base

-- | Get the value of a variable in the environment.
--
--     This function bypasses SDL\'s cached copy of the environment and is not thread-safe.
--
--     [Returns]: a pointer to the value of the variable or NULL if it can\'t be found.
--
--     [Thread safety]: This function is not thread safe, consider using @SDL_getenv()@ instead.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_getenv'
--
--     [C declaration]: @SDL_getenv_unsafe@, defined at @SDL3\/SDL_stdinc.h 1828:42@
sDL_getenv_unsafe
  :: PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@name@]: the name of the variable to get.
  -> IO (PtrConst.PtrConst BG.CChar)
sDL_getenv_unsafe = hs_bindgen_8bb86791a34eff6a

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_setenv_unsafe@
foreign import ccall unsafe "hs_bindgen_07289159390730ef"
  hs_bindgen_07289159390730ef_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> BG.Int32
    -> IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_setenv_unsafe@
hs_bindgen_07289159390730ef
  :: PtrConst.PtrConst BG.CChar
  -> PtrConst.PtrConst BG.CChar
  -> BG.CInt
  -> IO BG.CInt
hs_bindgen_07289159390730ef =
  BG.fromFFIType hs_bindgen_07289159390730ef_base

-- | Set the value of a variable in the environment.
--
--     [Returns]: 0 on success, -1 on error.
--
--     [Thread safety]: This function is not thread safe, consider using @SDL_SetEnvironmentVariable()@ instead.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_SetEnvironmentVariable'
--
--     [C declaration]: @SDL_setenv_unsafe@, defined at @SDL3\/SDL_stdinc.h 1846:33@
sDL_setenv_unsafe
  :: PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@name@]: the name of the variable to set.
  -> PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@value@]: the value of the variable to set.
  -> BG.CInt
  -- ^
  --
  --           [@overwrite@]: 1 to overwrite the variable if it exists, 0 to return success without setting the variable if it already exists.
  -> IO BG.CInt
sDL_setenv_unsafe = hs_bindgen_07289159390730ef

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_unsetenv_unsafe@
foreign import ccall unsafe "hs_bindgen_8eb1656d4bfcd1be"
  hs_bindgen_8eb1656d4bfcd1be_base
    :: BG.Ptr BG.Void
    -> IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_unsetenv_unsafe@
hs_bindgen_8eb1656d4bfcd1be
  :: PtrConst.PtrConst BG.CChar
  -> IO BG.CInt
hs_bindgen_8eb1656d4bfcd1be =
  BG.fromFFIType hs_bindgen_8eb1656d4bfcd1be_base

-- | Clear a variable from the environment.
--
--     [Returns]: 0 on success, -1 on error.
--
--     [Thread safety]: This function is not thread safe, consider using @SDL_UnsetEnvironmentVariable()@ instead.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_UnsetEnvironmentVariable'
--
--     [C declaration]: @SDL_unsetenv_unsafe@, defined at @SDL3\/SDL_stdinc.h 1861:33@
sDL_unsetenv_unsafe
  :: PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@name@]: the name of the variable to unset.
  -> IO BG.CInt
sDL_unsetenv_unsafe = hs_bindgen_8eb1656d4bfcd1be

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_qsort@
foreign import ccall unsafe "hs_bindgen_95192c7f785c4c45"
  hs_bindgen_95192c7f785c4c45_base
    :: BG.Ptr BG.Void
    -> BG.Word64
    -> BG.Word64
    -> BG.FunPtr BG.Void
    -> IO ()

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_qsort@
hs_bindgen_95192c7f785c4c45
  :: BG.Ptr BG.Void
  -> HsBindgen.Runtime.LibC.CSize
  -> HsBindgen.Runtime.LibC.CSize
  -> SDL_CompareCallback
  -> IO ()
hs_bindgen_95192c7f785c4c45 =
  BG.fromFFIType hs_bindgen_95192c7f785c4c45_base

-- | Sort an array.
--
--     For example:
--
--     @
--     typedef struct {
--         int key;
--         const char *string;
--     } data;
--
--     int SDLCALL compare(const void *a, const void *b)
--     {
--         const data *A = (const data *)a;
--         const data *B = (const data *)b;
--
--         if (A->n \< B->n) {
--             return -1;
--         } else if (B->n \< A->n) {
--             return 1;
--         } else {
--             return 0;
--         }
--     }
--
--     data values[] = {
--         { 3, \"third\" }, { 1, \"first\" }, { 2, \"second\" }
--     };
--
--     SDL_qsort(values, SDL_arraysize(values), sizeof(values[0]), compare);
--     @
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_bsearch', 'sDL_qsort_r'
--
--     [C declaration]: @SDL_qsort@, defined at @SDL3\/SDL_stdinc.h 1923:34@
sDL_qsort
  :: BG.Ptr BG.Void
  -- ^
  --
  --           [@base@]: a pointer to the start of the array.
  -> HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@nmemb@]: the number of elements in the array.
  -> HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@size@]: the size of the elements in the array.
  -> SDL_CompareCallback
  -- ^
  --
  --           [@compare@]: a function used to compare elements in the array.
  -> IO ()
sDL_qsort = hs_bindgen_95192c7f785c4c45

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_bsearch@
foreign import ccall unsafe "hs_bindgen_e3d85c2fcc0e0182"
  hs_bindgen_e3d85c2fcc0e0182_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> BG.Word64
    -> BG.Word64
    -> BG.FunPtr BG.Void
    -> IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_bsearch@
hs_bindgen_e3d85c2fcc0e0182
  :: PtrConst.PtrConst BG.Void
  -> PtrConst.PtrConst BG.Void
  -> HsBindgen.Runtime.LibC.CSize
  -> HsBindgen.Runtime.LibC.CSize
  -> SDL_CompareCallback
  -> IO (BG.Ptr BG.Void)
hs_bindgen_e3d85c2fcc0e0182 =
  BG.fromFFIType hs_bindgen_e3d85c2fcc0e0182_base

-- | Perform a binary search on a previously sorted array.
--
--     For example:
--
--     @
--     typedef struct {
--         int key;
--         const char *string;
--     } data;
--
--     int SDLCALL compare(const void *a, const void *b)
--     {
--         const data *A = (const data *)a;
--         const data *B = (const data *)b;
--
--         if (A->n \< B->n) {
--             return -1;
--         } else if (B->n \< A->n) {
--             return 1;
--         } else {
--             return 0;
--         }
--     }
--
--     data values[] = {
--         { 1, \"first\" }, { 2, \"second\" }, { 3, \"third\" }
--     };
--     data key = { 2, NULL };
--
--     data *result = SDL_bsearch(&key, values, SDL_arraysize(values), sizeof(values[0]), compare);
--     @
--
--     [Returns]: a pointer to the matching element in the array, or NULL if not found.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_bsearch_r', 'sDL_qsort'
--
--     [C declaration]: @SDL_bsearch@, defined at @SDL3\/SDL_stdinc.h 1973:36@
sDL_bsearch
  :: PtrConst.PtrConst BG.Void
  -- ^
  --
  --           [@key@]: a pointer to a key equal to the element being searched for.
  -> PtrConst.PtrConst BG.Void
  -- ^
  --
  --           [@base@]: a pointer to the start of the array.
  -> HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@nmemb@]: the number of elements in the array.
  -> HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@size@]: the size of the elements in the array.
  -> SDL_CompareCallback
  -- ^
  --
  --           [@compare@]: a function used to compare elements in the array.
  -> IO (BG.Ptr BG.Void)
sDL_bsearch = hs_bindgen_e3d85c2fcc0e0182

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_qsort_r@
foreign import ccall unsafe "hs_bindgen_7a30995c664569a4"
  hs_bindgen_7a30995c664569a4_base
    :: BG.Ptr BG.Void
    -> BG.Word64
    -> BG.Word64
    -> BG.FunPtr BG.Void
    -> BG.Ptr BG.Void
    -> IO ()

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_qsort_r@
hs_bindgen_7a30995c664569a4
  :: BG.Ptr BG.Void
  -> HsBindgen.Runtime.LibC.CSize
  -> HsBindgen.Runtime.LibC.CSize
  -> SDL_CompareCallback_r
  -> BG.Ptr BG.Void
  -> IO ()
hs_bindgen_7a30995c664569a4 =
  BG.fromFFIType hs_bindgen_7a30995c664569a4_base

-- | Sort an array, passing a userdata pointer to the compare function.
--
--     For example:
--
--     @
--     typedef enum {
--         sort_increasing,
--         sort_decreasing,
--     } sort_method;
--
--     typedef struct {
--         int key;
--         const char *string;
--     } data;
--
--     int SDLCALL compare(const void *userdata, const void *a, const void *b)
--     {
--         sort_method method = (sort_method)(uintptr_t)userdata;
--         const data *A = (const data *)a;
--         const data *B = (const data *)b;
--
--         if (A->key \< B->key) {
--             return (method == sort_increasing) ? -1 : 1;
--         } else if (B->key \< A->key) {
--             return (method == sort_increasing) ? 1 : -1;
--         } else {
--             return 0;
--         }
--     }
--
--     data values[] = {
--         { 3, \"third\" }, { 1, \"first\" }, { 2, \"second\" }
--     };
--
--     SDL_qsort_r(values, SDL_arraysize(values), sizeof(values[0]), compare, (const void *)(uintptr_t)sort_increasing);
--     @
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_bsearch_r', 'sDL_qsort'
--
--     [C declaration]: @SDL_qsort_r@, defined at @SDL3\/SDL_stdinc.h 2043:34@
sDL_qsort_r
  :: BG.Ptr BG.Void
  -- ^
  --
  --           [@base@]: a pointer to the start of the array.
  -> HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@nmemb@]: the number of elements in the array.
  -> HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@size@]: the size of the elements in the array.
  -> SDL_CompareCallback_r
  -- ^
  --
  --           [@compare@]: a function used to compare elements in the array.
  -> BG.Ptr BG.Void
  -- ^
  --
  --           [@userdata@]: a pointer to pass to the compare function.
  -> IO ()
sDL_qsort_r = hs_bindgen_7a30995c664569a4

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_bsearch_r@
foreign import ccall unsafe "hs_bindgen_57399b9b8aa9f8f0"
  hs_bindgen_57399b9b8aa9f8f0_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> BG.Word64
    -> BG.Word64
    -> BG.FunPtr BG.Void
    -> BG.Ptr BG.Void
    -> IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_bsearch_r@
hs_bindgen_57399b9b8aa9f8f0
  :: PtrConst.PtrConst BG.Void
  -> PtrConst.PtrConst BG.Void
  -> HsBindgen.Runtime.LibC.CSize
  -> HsBindgen.Runtime.LibC.CSize
  -> SDL_CompareCallback_r
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)
hs_bindgen_57399b9b8aa9f8f0 =
  BG.fromFFIType hs_bindgen_57399b9b8aa9f8f0_base

-- | Perform a binary search on a previously sorted array, passing a userdata pointer to the compare function.
--
--     For example:
--
--     @
--     typedef enum {
--         sort_increasing,
--         sort_decreasing,
--     } sort_method;
--
--     typedef struct {
--         int key;
--         const char *string;
--     } data;
--
--     int SDLCALL compare(const void *userdata, const void *a, const void *b)
--     {
--         sort_method method = (sort_method)(uintptr_t)userdata;
--         const data *A = (const data *)a;
--         const data *B = (const data *)b;
--
--         if (A->key \< B->key) {
--             return (method == sort_increasing) ? -1 : 1;
--         } else if (B->key \< A->key) {
--             return (method == sort_increasing) ? 1 : -1;
--         } else {
--             return 0;
--         }
--     }
--
--     data values[] = {
--         { 1, \"first\" }, { 2, \"second\" }, { 3, \"third\" }
--     };
--     data key = { 2, NULL };
--
--     data *result = SDL_bsearch_r(&key, values, SDL_arraysize(values), sizeof(values[0]), compare, (const void *)(uintptr_t)sort_increasing);
--     @
--
--     [Returns]: a pointer to the matching element in the array, or NULL if not found.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_bsearch', 'sDL_qsort_r'
--
--     [C declaration]: @SDL_bsearch_r@, defined at @SDL3\/SDL_stdinc.h 2101:36@
sDL_bsearch_r
  :: PtrConst.PtrConst BG.Void
  -- ^
  --
  --           [@key@]: a pointer to a key equal to the element being searched for.
  -> PtrConst.PtrConst BG.Void
  -- ^
  --
  --           [@base@]: a pointer to the start of the array.
  -> HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@nmemb@]: the number of elements in the array.
  -> HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@size@]: the size of the elements in the array.
  -> SDL_CompareCallback_r
  -- ^
  --
  --           [@compare@]: a function used to compare elements in the array.
  -> BG.Ptr BG.Void
  -- ^
  --
  --           [@userdata@]: a pointer to pass to the compare function.
  -> IO (BG.Ptr BG.Void)
sDL_bsearch_r = hs_bindgen_57399b9b8aa9f8f0

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_abs@
foreign import ccall unsafe "hs_bindgen_a928603d6470ca50"
  hs_bindgen_a928603d6470ca50_base
    :: BG.Int32
    -> IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_abs@
hs_bindgen_a928603d6470ca50
  :: BG.CInt
  -> IO BG.CInt
hs_bindgen_a928603d6470ca50 =
  BG.fromFFIType hs_bindgen_a928603d6470ca50_base

-- | Compute the absolute value of @x@.
--
--     [Returns]: the absolute value of x.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_abs@, defined at @SDL3\/SDL_stdinc.h 2113:33@
sDL_abs
  :: BG.CInt
  -- ^
  --
  --           [@x@]: an integer value.
  -> IO BG.CInt
sDL_abs = hs_bindgen_a928603d6470ca50

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_isalpha@
foreign import ccall unsafe "hs_bindgen_89185a009225cfaf"
  hs_bindgen_89185a009225cfaf_base
    :: BG.Int32
    -> IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_isalpha@
hs_bindgen_89185a009225cfaf
  :: BG.CInt
  -> IO BG.CInt
hs_bindgen_89185a009225cfaf =
  BG.fromFFIType hs_bindgen_89185a009225cfaf_base

-- | Query if a character is alphabetic (a letter).
--
--     __WARNING__: Regardless of system locale, this will only treat ASCII values for English \'a-z\' and \'A-Z\' as true.
--
--     [Returns]: non-zero if x falls within the character class, zero otherwise.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_isalpha@, defined at @SDL3\/SDL_stdinc.h 2188:33@
sDL_isalpha
  :: BG.CInt
  -- ^
  --
  --           [@x@]: character value to check.
  -> IO BG.CInt
sDL_isalpha = hs_bindgen_89185a009225cfaf

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_isalnum@
foreign import ccall unsafe "hs_bindgen_1ab6c2f3868de0bb"
  hs_bindgen_1ab6c2f3868de0bb_base
    :: BG.Int32
    -> IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_isalnum@
hs_bindgen_1ab6c2f3868de0bb
  :: BG.CInt
  -> IO BG.CInt
hs_bindgen_1ab6c2f3868de0bb =
  BG.fromFFIType hs_bindgen_1ab6c2f3868de0bb_base

-- | Query if a character is alphabetic (a letter) or a number.
--
--     __WARNING__: Regardless of system locale, this will only treat ASCII values for English \'a-z\', \'A-Z\', and \'0-9\' as true.
--
--     [Returns]: non-zero if x falls within the character class, zero otherwise.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_isalnum@, defined at @SDL3\/SDL_stdinc.h 2203:33@
sDL_isalnum
  :: BG.CInt
  -- ^
  --
  --           [@x@]: character value to check.
  -> IO BG.CInt
sDL_isalnum = hs_bindgen_1ab6c2f3868de0bb

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_isblank@
foreign import ccall unsafe "hs_bindgen_3c28b4a4af971951"
  hs_bindgen_3c28b4a4af971951_base
    :: BG.Int32
    -> IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_isblank@
hs_bindgen_3c28b4a4af971951
  :: BG.CInt
  -> IO BG.CInt
hs_bindgen_3c28b4a4af971951 =
  BG.fromFFIType hs_bindgen_3c28b4a4af971951_base

-- | Report if a character is blank (a space or tab).
--
--     __WARNING__: Regardless of system locale, this will only treat ASCII values 0x20 (space) or 0x9 (tab) as true.
--
--     [Returns]: non-zero if x falls within the character class, zero otherwise.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_isblank@, defined at @SDL3\/SDL_stdinc.h 2218:33@
sDL_isblank
  :: BG.CInt
  -- ^
  --
  --           [@x@]: character value to check.
  -> IO BG.CInt
sDL_isblank = hs_bindgen_3c28b4a4af971951

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_iscntrl@
foreign import ccall unsafe "hs_bindgen_13a0eb9bfa9faec7"
  hs_bindgen_13a0eb9bfa9faec7_base
    :: BG.Int32
    -> IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_iscntrl@
hs_bindgen_13a0eb9bfa9faec7
  :: BG.CInt
  -> IO BG.CInt
hs_bindgen_13a0eb9bfa9faec7 =
  BG.fromFFIType hs_bindgen_13a0eb9bfa9faec7_base

-- | Report if a character is a control character.
--
--     __WARNING__: Regardless of system locale, this will only treat ASCII values 0 through 0x1F, and 0x7F, as true.
--
--     [Returns]: non-zero if x falls within the character class, zero otherwise.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_iscntrl@, defined at @SDL3\/SDL_stdinc.h 2233:33@
sDL_iscntrl
  :: BG.CInt
  -- ^
  --
  --           [@x@]: character value to check.
  -> IO BG.CInt
sDL_iscntrl = hs_bindgen_13a0eb9bfa9faec7

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_isdigit@
foreign import ccall unsafe "hs_bindgen_9fae2f93c08cfbf0"
  hs_bindgen_9fae2f93c08cfbf0_base
    :: BG.Int32
    -> IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_isdigit@
hs_bindgen_9fae2f93c08cfbf0
  :: BG.CInt
  -> IO BG.CInt
hs_bindgen_9fae2f93c08cfbf0 =
  BG.fromFFIType hs_bindgen_9fae2f93c08cfbf0_base

-- | Report if a character is a numeric digit.
--
--     __WARNING__: Regardless of system locale, this will only treat ASCII values \'0\' (0x30) through \'9\' (0x39), as true.
--
--     [Returns]: non-zero if x falls within the character class, zero otherwise.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_isdigit@, defined at @SDL3\/SDL_stdinc.h 2248:33@
sDL_isdigit
  :: BG.CInt
  -- ^
  --
  --           [@x@]: character value to check.
  -> IO BG.CInt
sDL_isdigit = hs_bindgen_9fae2f93c08cfbf0

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_isxdigit@
foreign import ccall unsafe "hs_bindgen_0f033c6150a762a3"
  hs_bindgen_0f033c6150a762a3_base
    :: BG.Int32
    -> IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_isxdigit@
hs_bindgen_0f033c6150a762a3
  :: BG.CInt
  -> IO BG.CInt
hs_bindgen_0f033c6150a762a3 =
  BG.fromFFIType hs_bindgen_0f033c6150a762a3_base

-- | Report if a character is a hexadecimal digit.
--
--     __WARNING__: Regardless of system locale, this will only treat ASCII values \'A\' through \'F\', \'a\' through \'f\', and \'0\' through \'9\', as true.
--
--     [Returns]: non-zero if x falls within the character class, zero otherwise.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_isxdigit@, defined at @SDL3\/SDL_stdinc.h 2263:33@
sDL_isxdigit
  :: BG.CInt
  -- ^
  --
  --           [@x@]: character value to check.
  -> IO BG.CInt
sDL_isxdigit = hs_bindgen_0f033c6150a762a3

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_ispunct@
foreign import ccall unsafe "hs_bindgen_9b835961c1753aa6"
  hs_bindgen_9b835961c1753aa6_base
    :: BG.Int32
    -> IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_ispunct@
hs_bindgen_9b835961c1753aa6
  :: BG.CInt
  -> IO BG.CInt
hs_bindgen_9b835961c1753aa6 =
  BG.fromFFIType hs_bindgen_9b835961c1753aa6_base

-- | Report if a character is a punctuation mark.
--
--     __WARNING__: Regardless of system locale, this is equivalent to @((SDL_isgraph(x)) && (!SDL_isalnum(x)))@.
--
--     [Returns]: non-zero if x falls within the character class, zero otherwise.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_isgraph', 'sDL_isalnum'
--
--     [C declaration]: @SDL_ispunct@, defined at @SDL3\/SDL_stdinc.h 2281:33@
sDL_ispunct
  :: BG.CInt
  -- ^
  --
  --           [@x@]: character value to check.
  -> IO BG.CInt
sDL_ispunct = hs_bindgen_9b835961c1753aa6

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_isspace@
foreign import ccall unsafe "hs_bindgen_37bfc6e46aee6fcc"
  hs_bindgen_37bfc6e46aee6fcc_base
    :: BG.Int32
    -> IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_isspace@
hs_bindgen_37bfc6e46aee6fcc
  :: BG.CInt
  -> IO BG.CInt
hs_bindgen_37bfc6e46aee6fcc =
  BG.fromFFIType hs_bindgen_37bfc6e46aee6fcc_base

-- | Report if a character is whitespace.
--
--     __WARNING__: Regardless of system locale, this will only treat the following ASCII values as true:
--
--     * space (0x20)
--
--     * tab (0x09)
--
--     * newline (0x0A)
--
--     * vertical tab (0x0B)
--
--     * form feed (0x0C)
--
--     * return (0x0D)
--
--     [Returns]: non-zero if x falls within the character class, zero otherwise.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_isspace@, defined at @SDL3\/SDL_stdinc.h 2303:33@
sDL_isspace
  :: BG.CInt
  -- ^
  --
  --           [@x@]: character value to check.
  -> IO BG.CInt
sDL_isspace = hs_bindgen_37bfc6e46aee6fcc

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_isupper@
foreign import ccall unsafe "hs_bindgen_6a23210549f82553"
  hs_bindgen_6a23210549f82553_base
    :: BG.Int32
    -> IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_isupper@
hs_bindgen_6a23210549f82553
  :: BG.CInt
  -> IO BG.CInt
hs_bindgen_6a23210549f82553 =
  BG.fromFFIType hs_bindgen_6a23210549f82553_base

-- | Report if a character is upper case.
--
--     __WARNING__: Regardless of system locale, this will only treat ASCII values \'A\' through \'Z\' as true.
--
--     [Returns]: non-zero if x falls within the character class, zero otherwise.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_isupper@, defined at @SDL3\/SDL_stdinc.h 2318:33@
sDL_isupper
  :: BG.CInt
  -- ^
  --
  --           [@x@]: character value to check.
  -> IO BG.CInt
sDL_isupper = hs_bindgen_6a23210549f82553

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_islower@
foreign import ccall unsafe "hs_bindgen_4ef887be849a9002"
  hs_bindgen_4ef887be849a9002_base
    :: BG.Int32
    -> IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_islower@
hs_bindgen_4ef887be849a9002
  :: BG.CInt
  -> IO BG.CInt
hs_bindgen_4ef887be849a9002 =
  BG.fromFFIType hs_bindgen_4ef887be849a9002_base

-- | Report if a character is lower case.
--
--     __WARNING__: Regardless of system locale, this will only treat ASCII values \'a\' through \'z\' as true.
--
--     [Returns]: non-zero if x falls within the character class, zero otherwise.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_islower@, defined at @SDL3\/SDL_stdinc.h 2333:33@
sDL_islower
  :: BG.CInt
  -- ^
  --
  --           [@x@]: character value to check.
  -> IO BG.CInt
sDL_islower = hs_bindgen_4ef887be849a9002

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_isprint@
foreign import ccall unsafe "hs_bindgen_258633f7820b5c3c"
  hs_bindgen_258633f7820b5c3c_base
    :: BG.Int32
    -> IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_isprint@
hs_bindgen_258633f7820b5c3c
  :: BG.CInt
  -> IO BG.CInt
hs_bindgen_258633f7820b5c3c =
  BG.fromFFIType hs_bindgen_258633f7820b5c3c_base

-- | Report if a character is \"printable\".
--
--     Be advised that \"printable\" has a definition that goes back to text terminals from the dawn of computing, making this a sort of special case function that is not suitable for Unicode (or most any) text management.
--
--     __WARNING__: Regardless of system locale, this will only treat ASCII values \' \' (0x20) through \'~\' (0x7E) as true.
--
--     [Returns]: non-zero if x falls within the character class, zero otherwise.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_isprint@, defined at @SDL3\/SDL_stdinc.h 2352:33@
sDL_isprint
  :: BG.CInt
  -- ^
  --
  --           [@x@]: character value to check.
  -> IO BG.CInt
sDL_isprint = hs_bindgen_258633f7820b5c3c

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_isgraph@
foreign import ccall unsafe "hs_bindgen_64e7a8597c7c9710"
  hs_bindgen_64e7a8597c7c9710_base
    :: BG.Int32
    -> IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_isgraph@
hs_bindgen_64e7a8597c7c9710
  :: BG.CInt
  -> IO BG.CInt
hs_bindgen_64e7a8597c7c9710 =
  BG.fromFFIType hs_bindgen_64e7a8597c7c9710_base

-- | Report if a character is any \"printable\" except space.
--
--     Be advised that \"printable\" has a definition that goes back to text terminals from the dawn of computing, making this a sort of special case function that is not suitable for Unicode (or most any) text management.
--
--     __WARNING__: Regardless of system locale, this is equivalent to @(SDL_isprint(x)) && ((x) != \' \')@.
--
--     [Returns]: non-zero if x falls within the character class, zero otherwise.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_isprint'
--
--     [C declaration]: @SDL_isgraph@, defined at @SDL3\/SDL_stdinc.h 2373:33@
sDL_isgraph
  :: BG.CInt
  -- ^
  --
  --           [@x@]: character value to check.
  -> IO BG.CInt
sDL_isgraph = hs_bindgen_64e7a8597c7c9710

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_toupper@
foreign import ccall unsafe "hs_bindgen_c1347761ea69159d"
  hs_bindgen_c1347761ea69159d_base
    :: BG.Int32
    -> IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_toupper@
hs_bindgen_c1347761ea69159d
  :: BG.CInt
  -> IO BG.CInt
hs_bindgen_c1347761ea69159d =
  BG.fromFFIType hs_bindgen_c1347761ea69159d_base

-- | Convert low-ASCII English letters to uppercase.
--
--     __WARNING__: Regardless of system locale, this will only convert ASCII values \'a\' through \'z\' to uppercase.
--
--     This function returns the uppercase equivalent of @x@. If a character cannot be converted, or is already uppercase, this function returns @x@.
--
--     [Returns]: capitalized version of x, or x if no conversion available.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_toupper@, defined at @SDL3\/SDL_stdinc.h 2391:33@
sDL_toupper
  :: BG.CInt
  -- ^
  --
  --           [@x@]: character value to check.
  -> IO BG.CInt
sDL_toupper = hs_bindgen_c1347761ea69159d

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_tolower@
foreign import ccall unsafe "hs_bindgen_b3fecd41676fe4be"
  hs_bindgen_b3fecd41676fe4be_base
    :: BG.Int32
    -> IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_tolower@
hs_bindgen_b3fecd41676fe4be
  :: BG.CInt
  -> IO BG.CInt
hs_bindgen_b3fecd41676fe4be =
  BG.fromFFIType hs_bindgen_b3fecd41676fe4be_base

-- | Convert low-ASCII English letters to lowercase.
--
--     __WARNING__: Regardless of system locale, this will only convert ASCII values \'A\' through \'Z\' to lowercase.
--
--     This function returns the lowercase equivalent of @x@. If a character cannot be converted, or is already lowercase, this function returns @x@.
--
--     [Returns]: lowercase version of x, or x if no conversion available.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_tolower@, defined at @SDL3\/SDL_stdinc.h 2409:33@
sDL_tolower
  :: BG.CInt
  -- ^
  --
  --           [@x@]: character value to check.
  -> IO BG.CInt
sDL_tolower = hs_bindgen_b3fecd41676fe4be

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_crc16@
foreign import ccall unsafe "hs_bindgen_35ff41be4e4da9d1"
  hs_bindgen_35ff41be4e4da9d1_base
    :: BG.Word16
    -> BG.Ptr BG.Void
    -> BG.Word64
    -> IO BG.Word16

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_crc16@
hs_bindgen_35ff41be4e4da9d1
  :: Uint16
  -> PtrConst.PtrConst BG.Void
  -> HsBindgen.Runtime.LibC.CSize
  -> IO Uint16
hs_bindgen_35ff41be4e4da9d1 =
  BG.fromFFIType hs_bindgen_35ff41be4e4da9d1_base

-- | Calculate a CRC-16 value.
--
--     [https:\/\/en.wikipedia.org\/wiki\/Cyclic_redundancy_check](https://en.wikipedia.org/wiki/Cyclic_redundancy_check)
--
--     This function can be called multiple times, to stream data to be checksummed in blocks. Each call must provide the previous CRC-16 return value to be updated with the next block. The first call to this function for a set of blocks should pass in a zero CRC value.
--
--     [Returns]: a CRC-16 checksum value of all blocks in the data set.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_crc16@, defined at @SDL3\/SDL_stdinc.h 2430:36@
sDL_crc16
  :: Uint16
  -- ^
  --
  --           [@crc@]: the current checksum for this data set, or 0 for a new data set.
  -> PtrConst.PtrConst BG.Void
  -- ^
  --
  --           [@data@]: a new block of data to add to the checksum.
  -> HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@len@]: the size, in bytes, of the new block of data.
  -> IO Uint16
sDL_crc16 = hs_bindgen_35ff41be4e4da9d1

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_crc32@
foreign import ccall unsafe "hs_bindgen_6755f946704473dc"
  hs_bindgen_6755f946704473dc_base
    :: BG.Word32
    -> BG.Ptr BG.Void
    -> BG.Word64
    -> IO BG.Word32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_crc32@
hs_bindgen_6755f946704473dc
  :: Uint32
  -> PtrConst.PtrConst BG.Void
  -> HsBindgen.Runtime.LibC.CSize
  -> IO Uint32
hs_bindgen_6755f946704473dc =
  BG.fromFFIType hs_bindgen_6755f946704473dc_base

-- | Calculate a CRC-32 value.
--
--     [https:\/\/en.wikipedia.org\/wiki\/Cyclic_redundancy_check](https://en.wikipedia.org/wiki/Cyclic_redundancy_check)
--
--     This function can be called multiple times, to stream data to be checksummed in blocks. Each call must provide the previous CRC-32 return value to be updated with the next block. The first call to this function for a set of blocks should pass in a zero CRC value.
--
--     [Returns]: a CRC-32 checksum value of all blocks in the data set.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_crc32@, defined at @SDL3\/SDL_stdinc.h 2451:36@
sDL_crc32
  :: Uint32
  -- ^
  --
  --           [@crc@]: the current checksum for this data set, or 0 for a new data set.
  -> PtrConst.PtrConst BG.Void
  -- ^
  --
  --           [@data@]: a new block of data to add to the checksum.
  -> HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@len@]: the size, in bytes, of the new block of data.
  -> IO Uint32
sDL_crc32 = hs_bindgen_6755f946704473dc

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_murmur3_32@
foreign import ccall unsafe "hs_bindgen_4538e03ee60f6976"
  hs_bindgen_4538e03ee60f6976_base
    :: BG.Ptr BG.Void
    -> BG.Word64
    -> BG.Word32
    -> IO BG.Word32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_murmur3_32@
hs_bindgen_4538e03ee60f6976
  :: PtrConst.PtrConst BG.Void
  -> HsBindgen.Runtime.LibC.CSize
  -> Uint32
  -> IO Uint32
hs_bindgen_4538e03ee60f6976 =
  BG.fromFFIType hs_bindgen_4538e03ee60f6976_base

-- | Calculate a 32-bit MurmurHash3 value for a block of data.
--
--     [https:\/\/en.wikipedia.org\/wiki\/MurmurHash](https://en.wikipedia.org/wiki/MurmurHash)
--
--     A seed may be specified, which changes the final results consistently, but this does not work like SDL_crc16 and SDL_crc32: you can\'t feed a previous result from this function back into itself as the next seed value to calculate a hash in chunks; it won\'t produce the same hash as it would if the same data was provided in a single call.
--
--     If you aren\'t sure what to provide for a seed, zero is fine. Murmur3 is not cryptographically secure, so it shouldn\'t be used for hashing top-secret data.
--
--     [Returns]: a Murmur3 32-bit hash value.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_murmur3_32@, defined at @SDL3\/SDL_stdinc.h 2477:36@
sDL_murmur3_32
  :: PtrConst.PtrConst BG.Void
  -- ^
  --
  --           [@data@]: the data to be hashed.
  -> HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@len@]: the size of data, in bytes.
  -> Uint32
  -- ^
  --
  --           [@seed@]: a value that alters the final hash value.
  -> IO Uint32
sDL_murmur3_32 = hs_bindgen_4538e03ee60f6976

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_memset4@
foreign import ccall unsafe "hs_bindgen_006ad9913290aee0"
  hs_bindgen_006ad9913290aee0_base
    :: BG.Ptr BG.Void
    -> BG.Word32
    -> BG.Word64
    -> IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_memset4@
hs_bindgen_006ad9913290aee0
  :: BG.Ptr BG.Void
  -> Uint32
  -> HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr BG.Void)
hs_bindgen_006ad9913290aee0 =
  BG.fromFFIType hs_bindgen_006ad9913290aee0_base

-- | Initialize all 32-bit words of buffer of memory to a specific value.
--
--     This function will set a buffer of @dwords@ 'Uint32' values, pointed to by @dst@, to the value specified in @val@.
--
--     Unlike SDL_memset, this sets 32-bit values, not bytes, so it\'s not limited to a range of 0-255.
--
--     [Returns]: @dst@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_memset4@, defined at @SDL3\/SDL_stdinc.h 2601:36@
sDL_memset4
  :: BG.Ptr BG.Void
  -- ^
  --
  --           [@dst@]: the destination memory region. Must not be NULL.
  -> Uint32
  -- ^
  --
  --           [@val@]: the 'Uint32' value to set.
  -> HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@dwords@]: the number of 'Uint32' values to set in @dst@.
  -> IO (BG.Ptr BG.Void)
sDL_memset4 = hs_bindgen_006ad9913290aee0

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_memcmp@
foreign import ccall unsafe "hs_bindgen_f8312f3094e9811f"
  hs_bindgen_f8312f3094e9811f_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> BG.Word64
    -> IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_memcmp@
hs_bindgen_f8312f3094e9811f
  :: PtrConst.PtrConst BG.Void
  -> PtrConst.PtrConst BG.Void
  -> HsBindgen.Runtime.LibC.CSize
  -> IO BG.CInt
hs_bindgen_f8312f3094e9811f =
  BG.fromFFIType hs_bindgen_f8312f3094e9811f_base

-- | Compare two buffers of memory.
--
--     [Returns]: less than zero if s1 is \"less than\" s2, greater than zero if s1 is \"greater than\" s2, and zero if the buffers match exactly for @len@ bytes.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_memcmp@, defined at @SDL3\/SDL_stdinc.h 2683:33@
sDL_memcmp
  :: PtrConst.PtrConst BG.Void
  -- ^
  --
  --           [@s1@]: the first buffer to compare. NULL is not permitted!
  -> PtrConst.PtrConst BG.Void
  -- ^
  --
  --           [@s2@]: the second buffer to compare. NULL is not permitted!
  -> HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@len@]: the number of bytes to compare between the buffers.
  -> IO BG.CInt
sDL_memcmp = hs_bindgen_f8312f3094e9811f

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_wcslen@
foreign import ccall unsafe "hs_bindgen_7819cc3f05f6e767"
  hs_bindgen_7819cc3f05f6e767_base
    :: BG.Ptr BG.Void
    -> IO BG.Word64

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_wcslen@
hs_bindgen_7819cc3f05f6e767
  :: PtrConst.PtrConst HsBindgen.Runtime.LibC.CWchar
  -> IO HsBindgen.Runtime.LibC.CSize
hs_bindgen_7819cc3f05f6e767 =
  BG.fromFFIType hs_bindgen_7819cc3f05f6e767_base

-- | This works exactly like wcslen() but doesn\'t require access to a C runtime.
--
--     Counts the number of wchar_t values in @wstr@, excluding the null terminator.
--
--     Like SDL_strlen only counts bytes and not codepoints in a UTF-8 string, this counts wchar_t values in a string, even if the string\'s encoding is of variable width, like UTF-16.
--
--     Also be aware that wchar_t is different sizes on different platforms (4 bytes on Linux, 2 on Windows, etc).
--
--     [Returns]: the length (in wchar_t values, excluding the null terminator) of @wstr@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_wcsnlen', 'sDL_utf8strlen', 'sDL_utf8strnlen'
--
--     [C declaration]: @SDL_wcslen@, defined at @SDL3\/SDL_stdinc.h 2710:36@
sDL_wcslen
  :: PtrConst.PtrConst HsBindgen.Runtime.LibC.CWchar
  -- ^
  --
  --           [@wstr@]: The null-terminated wide string to read. Must not be NULL.
  -> IO HsBindgen.Runtime.LibC.CSize
sDL_wcslen = hs_bindgen_7819cc3f05f6e767

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_wcsnlen@
foreign import ccall unsafe "hs_bindgen_4d4c9962d27e8c57"
  hs_bindgen_4d4c9962d27e8c57_base
    :: BG.Ptr BG.Void
    -> BG.Word64
    -> IO BG.Word64

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_wcsnlen@
hs_bindgen_4d4c9962d27e8c57
  :: PtrConst.PtrConst HsBindgen.Runtime.LibC.CWchar
  -> HsBindgen.Runtime.LibC.CSize
  -> IO HsBindgen.Runtime.LibC.CSize
hs_bindgen_4d4c9962d27e8c57 =
  BG.fromFFIType hs_bindgen_4d4c9962d27e8c57_base

-- | This works exactly like wcsnlen() but doesn\'t require access to a C runtime.
--
--     Counts up to a maximum of @maxlen@ wchar_t values in @wstr@, excluding the null terminator.
--
--     Like SDL_strnlen only counts bytes and not codepoints in a UTF-8 string, this counts wchar_t values in a string, even if the string\'s encoding is of variable width, like UTF-16.
--
--     Also be aware that wchar_t is different sizes on different platforms (4 bytes on Linux, 2 on Windows, etc).
--
--     Also, @maxlen@ is a count of wide characters, not bytes!
--
--     [Returns]: the length (in wide characters, excluding the null terminator) of @wstr@ but never more than @maxlen@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_wcslen', 'sDL_utf8strlen', 'sDL_utf8strnlen'
--
--     [C declaration]: @SDL_wcsnlen@, defined at @SDL3\/SDL_stdinc.h 2741:36@
sDL_wcsnlen
  :: PtrConst.PtrConst HsBindgen.Runtime.LibC.CWchar
  -- ^
  --
  --           [@wstr@]: The null-terminated wide string to read. Must not be NULL.
  -> HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@maxlen@]: The maximum amount of wide characters to count.
  -> IO HsBindgen.Runtime.LibC.CSize
sDL_wcsnlen = hs_bindgen_4d4c9962d27e8c57

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_wcslcpy@
foreign import ccall unsafe "hs_bindgen_6a63636fffe52a27"
  hs_bindgen_6a63636fffe52a27_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> BG.Word64
    -> IO BG.Word64

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_wcslcpy@
hs_bindgen_6a63636fffe52a27
  :: BG.Ptr HsBindgen.Runtime.LibC.CWchar
  -> PtrConst.PtrConst HsBindgen.Runtime.LibC.CWchar
  -> HsBindgen.Runtime.LibC.CSize
  -> IO HsBindgen.Runtime.LibC.CSize
hs_bindgen_6a63636fffe52a27 =
  BG.fromFFIType hs_bindgen_6a63636fffe52a27_base

-- | Copy a wide string.
--
--     This function copies @maxlen@ - 1 wide characters from @src@ to @dst@, then appends a null terminator.
--
--     @src@ and @dst@ must not overlap.
--
--     If @maxlen@ is 0, no wide characters are copied and no null terminator is written.
--
--     [Returns]: the length (in wide characters, excluding the null terminator) of @src@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_wcslcat'
--
--     [C declaration]: @SDL_wcslcpy@, defined at @SDL3\/SDL_stdinc.h 2768:36@
sDL_wcslcpy
  :: BG.Ptr HsBindgen.Runtime.LibC.CWchar
  -- ^
  --
  --           [@dst@]: The destination buffer. Must not be NULL, and must not overlap with @src@.
  -> PtrConst.PtrConst HsBindgen.Runtime.LibC.CWchar
  -- ^
  --
  --           [@src@]: The null-terminated wide string to copy. Must not be NULL, and must not overlap with @dst@.
  -> HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@maxlen@]: The length (in wide characters) of the destination buffer.
  -> IO HsBindgen.Runtime.LibC.CSize
sDL_wcslcpy = hs_bindgen_6a63636fffe52a27

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_wcslcat@
foreign import ccall unsafe "hs_bindgen_ae63311931250a61"
  hs_bindgen_ae63311931250a61_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> BG.Word64
    -> IO BG.Word64

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_wcslcat@
hs_bindgen_ae63311931250a61
  :: BG.Ptr HsBindgen.Runtime.LibC.CWchar
  -> PtrConst.PtrConst HsBindgen.Runtime.LibC.CWchar
  -> HsBindgen.Runtime.LibC.CSize
  -> IO HsBindgen.Runtime.LibC.CSize
hs_bindgen_ae63311931250a61 =
  BG.fromFFIType hs_bindgen_ae63311931250a61_base

-- | Concatenate wide strings.
--
--     This function appends up to @maxlen@ - SDL_wcslen(dst) - 1 wide characters from @src@ to the end of the wide string in @dst@, then appends a null terminator.
--
--     @src@ and @dst@ must not overlap.
--
--     If @maxlen@ - SDL_wcslen(dst) - 1 is less than or equal to 0, then @dst@ is unmodified.
--
--     [Returns]: the length (in wide characters, excluding the null terminator) of the string in @dst@ plus the length of @src@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_wcslcpy'
--
--     [C declaration]: @SDL_wcslcat@, defined at @SDL3\/SDL_stdinc.h 2797:36@
sDL_wcslcat
  :: BG.Ptr HsBindgen.Runtime.LibC.CWchar
  -- ^
  --
  --           [@dst@]: The destination buffer already containing the first null-terminated wide string. Must not be NULL and must not overlap with @src@.
  -> PtrConst.PtrConst HsBindgen.Runtime.LibC.CWchar
  -- ^
  --
  --           [@src@]: The second null-terminated wide string. Must not be NULL, and must not overlap with @dst@.
  -> HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@maxlen@]: The length (in wide characters) of the destination buffer.
  -> IO HsBindgen.Runtime.LibC.CSize
sDL_wcslcat = hs_bindgen_ae63311931250a61

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_wcsdup@
foreign import ccall unsafe "hs_bindgen_0c56a99a680dde86"
  hs_bindgen_0c56a99a680dde86_base
    :: BG.Ptr BG.Void
    -> IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_wcsdup@
hs_bindgen_0c56a99a680dde86
  :: PtrConst.PtrConst HsBindgen.Runtime.LibC.CWchar
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.CWchar)
hs_bindgen_0c56a99a680dde86 =
  BG.fromFFIType hs_bindgen_0c56a99a680dde86_base

-- | Allocate a copy of a wide string.
--
--     This allocates enough space for a null-terminated copy of @wstr@, using SDL_malloc, and then makes a copy of the string into this space.
--
--     The returned string is owned by the caller, and should be passed to SDL_free when no longer needed.
--
--     [Returns]: a pointer to the newly-allocated wide string.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_wcsdup@, defined at @SDL3\/SDL_stdinc.h 2815:39@
sDL_wcsdup
  :: PtrConst.PtrConst HsBindgen.Runtime.LibC.CWchar
  -- ^
  --
  --           [@wstr@]: the string to copy.
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.CWchar)
sDL_wcsdup = hs_bindgen_0c56a99a680dde86

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_wcsstr@
foreign import ccall unsafe "hs_bindgen_0e15f64725300a1d"
  hs_bindgen_0e15f64725300a1d_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_wcsstr@
hs_bindgen_0e15f64725300a1d
  :: PtrConst.PtrConst HsBindgen.Runtime.LibC.CWchar
  -> PtrConst.PtrConst HsBindgen.Runtime.LibC.CWchar
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.CWchar)
hs_bindgen_0e15f64725300a1d =
  BG.fromFFIType hs_bindgen_0e15f64725300a1d_base

-- | Search a wide string for the first instance of a specific substring.
--
--     The search ends once it finds the requested substring, or a null terminator byte to end the string.
--
--     Note that this looks for strings of /wide characters/, not /codepoints/, so it\'s legal to search for malformed and incomplete UTF-16 sequences.
--
--     [Returns]: a pointer to the first instance of @needle@ in the string, or NULL if not found.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_wcsstr@, defined at @SDL3\/SDL_stdinc.h 2835:39@
sDL_wcsstr
  :: PtrConst.PtrConst HsBindgen.Runtime.LibC.CWchar
  -- ^
  --
  --           [@haystack@]: the wide string to search. Must not be NULL.
  -> PtrConst.PtrConst HsBindgen.Runtime.LibC.CWchar
  -- ^
  --
  --           [@needle@]: the wide string to search for. Must not be NULL.
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.CWchar)
sDL_wcsstr = hs_bindgen_0e15f64725300a1d

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_wcsnstr@
foreign import ccall unsafe "hs_bindgen_ed81408c495114ac"
  hs_bindgen_ed81408c495114ac_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> BG.Word64
    -> IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_wcsnstr@
hs_bindgen_ed81408c495114ac
  :: PtrConst.PtrConst HsBindgen.Runtime.LibC.CWchar
  -> PtrConst.PtrConst HsBindgen.Runtime.LibC.CWchar
  -> HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.CWchar)
hs_bindgen_ed81408c495114ac =
  BG.fromFFIType hs_bindgen_ed81408c495114ac_base

-- | Search a wide string, up to n wide chars, for the first instance of a specific substring.
--
--     The search ends once it finds the requested substring, or a null terminator value to end the string, or @maxlen@ wide character have been examined. It is possible to use this function on a wide string without a null terminator.
--
--     Note that this looks for strings of /wide characters/, not /codepoints/, so it\'s legal to search for malformed and incomplete UTF-16 sequences.
--
--     [Returns]: a pointer to the first instance of @needle@ in the string, or NULL if not found.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_wcsnstr@, defined at @SDL3\/SDL_stdinc.h 2860:39@
sDL_wcsnstr
  :: PtrConst.PtrConst HsBindgen.Runtime.LibC.CWchar
  -- ^
  --
  --           [@haystack@]: the wide string to search. Must not be NULL.
  -> PtrConst.PtrConst HsBindgen.Runtime.LibC.CWchar
  -- ^
  --
  --           [@needle@]: the wide string to search for. Must not be NULL.
  -> HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@maxlen@]: the maximum number of wide characters to search in @haystack@.
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.CWchar)
sDL_wcsnstr = hs_bindgen_ed81408c495114ac

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_wcscmp@
foreign import ccall unsafe "hs_bindgen_523128c66baf772a"
  hs_bindgen_523128c66baf772a_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_wcscmp@
hs_bindgen_523128c66baf772a
  :: PtrConst.PtrConst HsBindgen.Runtime.LibC.CWchar
  -> PtrConst.PtrConst HsBindgen.Runtime.LibC.CWchar
  -> IO BG.CInt
hs_bindgen_523128c66baf772a =
  BG.fromFFIType hs_bindgen_523128c66baf772a_base

-- | Compare two null-terminated wide strings.
--
--     This only compares wchar_t values until it hits a null-terminating character; it does not care if the string is well-formed UTF-16 (or UTF-32, depending on your platform\'s wchar_t size), or uses valid Unicode values.
--
--     [Returns]: less than zero if str1 is \"less than\" str2, greater than zero if str1 is \"greater than\" str2, and zero if the strings match exactly.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_wcscmp@, defined at @SDL3\/SDL_stdinc.h 2879:33@
sDL_wcscmp
  :: PtrConst.PtrConst HsBindgen.Runtime.LibC.CWchar
  -- ^
  --
  --           [@str1@]: the first string to compare. NULL is not permitted!
  -> PtrConst.PtrConst HsBindgen.Runtime.LibC.CWchar
  -- ^
  --
  --           [@str2@]: the second string to compare. NULL is not permitted!
  -> IO BG.CInt
sDL_wcscmp = hs_bindgen_523128c66baf772a

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_wcsncmp@
foreign import ccall unsafe "hs_bindgen_ae16252c87514b75"
  hs_bindgen_ae16252c87514b75_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> BG.Word64
    -> IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_wcsncmp@
hs_bindgen_ae16252c87514b75
  :: PtrConst.PtrConst HsBindgen.Runtime.LibC.CWchar
  -> PtrConst.PtrConst HsBindgen.Runtime.LibC.CWchar
  -> HsBindgen.Runtime.LibC.CSize
  -> IO BG.CInt
hs_bindgen_ae16252c87514b75 =
  BG.fromFFIType hs_bindgen_ae16252c87514b75_base

-- | Compare two wide strings up to a number of wchar_t values.
--
--     This only compares wchar_t values; it does not care if the string is well-formed UTF-16 (or UTF-32, depending on your platform\'s wchar_t size), or uses valid Unicode values.
--
--     Note that while this function is intended to be used with UTF-16 (or UTF-32, depending on your platform\'s definition of wchar_t), it is comparing raw wchar_t values and not Unicode codepoints: @maxlen@ specifies a wchar_t limit! If the limit lands in the middle of a multi-wchar UTF-16 sequence, it will only compare a portion of the final character.
--
--     @maxlen@ specifies a maximum number of wchar_t to compare; if the strings match to this number of wide chars (or both have matched to a null-terminator character before this count), they will be considered equal.
--
--     [Returns]: less than zero if str1 is \"less than\" str2, greater than zero if str1 is \"greater than\" str2, and zero if the strings match exactly.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_wcsncmp@, defined at @SDL3\/SDL_stdinc.h 2910:33@
sDL_wcsncmp
  :: PtrConst.PtrConst HsBindgen.Runtime.LibC.CWchar
  -- ^
  --
  --           [@str1@]: the first string to compare. NULL is not permitted!
  -> PtrConst.PtrConst HsBindgen.Runtime.LibC.CWchar
  -- ^
  --
  --           [@str2@]: the second string to compare. NULL is not permitted!
  -> HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@maxlen@]: the maximum number of wchar_t to compare.
  -> IO BG.CInt
sDL_wcsncmp = hs_bindgen_ae16252c87514b75

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_wcscasecmp@
foreign import ccall unsafe "hs_bindgen_2a1f0e71a040879b"
  hs_bindgen_2a1f0e71a040879b_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_wcscasecmp@
hs_bindgen_2a1f0e71a040879b
  :: PtrConst.PtrConst HsBindgen.Runtime.LibC.CWchar
  -> PtrConst.PtrConst HsBindgen.Runtime.LibC.CWchar
  -> IO BG.CInt
hs_bindgen_2a1f0e71a040879b =
  BG.fromFFIType hs_bindgen_2a1f0e71a040879b_base

-- | Compare two null-terminated wide strings, case-insensitively.
--
--     This will work with Unicode strings, using a technique called \"case-folding\" to handle the vast majority of case-sensitive human languages regardless of system locale. It can deal with expanding values: a German Eszett character can compare against two ASCII \'s\' chars and be considered a match, for example. A notable exception: it does not handle the Turkish \'i\' character; human language is complicated!
--
--     Depending on your platform, \"wchar_t\" might be 2 bytes, and expected to be UTF-16 encoded (like Windows), or 4 bytes in UTF-32 format. Since this handles Unicode, it expects the string to be well-formed and not a null-terminated string of arbitrary bytes. Characters that are not valid UTF-16 (or UTF-32) are treated as Unicode character U+FFFD (REPLACEMENT CHARACTER), which is to say two strings of random bits may turn out to match if they convert to the same amount of replacement characters.
--
--     [Returns]: less than zero if str1 is \"less than\" str2, greater than zero if str1 is \"greater than\" str2, and zero if the strings match exactly.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_wcscasecmp@, defined at @SDL3\/SDL_stdinc.h 2940:33@
sDL_wcscasecmp
  :: PtrConst.PtrConst HsBindgen.Runtime.LibC.CWchar
  -- ^
  --
  --           [@str1@]: the first string to compare. NULL is not permitted!
  -> PtrConst.PtrConst HsBindgen.Runtime.LibC.CWchar
  -- ^
  --
  --           [@str2@]: the second string to compare. NULL is not permitted!
  -> IO BG.CInt
sDL_wcscasecmp = hs_bindgen_2a1f0e71a040879b

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_wcsncasecmp@
foreign import ccall unsafe "hs_bindgen_1c13738568f12d1d"
  hs_bindgen_1c13738568f12d1d_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> BG.Word64
    -> IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_wcsncasecmp@
hs_bindgen_1c13738568f12d1d
  :: PtrConst.PtrConst HsBindgen.Runtime.LibC.CWchar
  -> PtrConst.PtrConst HsBindgen.Runtime.LibC.CWchar
  -> HsBindgen.Runtime.LibC.CSize
  -> IO BG.CInt
hs_bindgen_1c13738568f12d1d =
  BG.fromFFIType hs_bindgen_1c13738568f12d1d_base

-- | Compare two wide strings, case-insensitively, up to a number of wchar_t.
--
--     This will work with Unicode strings, using a technique called \"case-folding\" to handle the vast majority of case-sensitive human languages regardless of system locale. It can deal with expanding values: a German Eszett character can compare against two ASCII \'s\' chars and be considered a match, for example. A notable exception: it does not handle the Turkish \'i\' character; human language is complicated!
--
--     Depending on your platform, \"wchar_t\" might be 2 bytes, and expected to be UTF-16 encoded (like Windows), or 4 bytes in UTF-32 format. Since this handles Unicode, it expects the string to be well-formed and not a null-terminated string of arbitrary bytes. Characters that are not valid UTF-16 (or UTF-32) are treated as Unicode character U+FFFD (REPLACEMENT CHARACTER), which is to say two strings of random bits may turn out to match if they convert to the same amount of replacement characters.
--
--     Note that while this function might deal with variable-sized characters, @maxlen@ specifies a /wchar/ limit! If the limit lands in the middle of a multi-byte UTF-16 sequence, it may convert a portion of the final character to one or more Unicode character U+FFFD (REPLACEMENT CHARACTER) so as not to overflow a buffer.
--
--     @maxlen@ specifies a maximum number of wchar_t values to compare; if the strings match to this number of wchar_t (or both have matched to a null-terminator character before this number of bytes), they will be considered equal.
--
--     [Returns]: less than zero if str1 is \"less than\" str2, greater than zero if str1 is \"greater than\" str2, and zero if the strings match exactly.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_wcsncasecmp@, defined at @SDL3\/SDL_stdinc.h 2982:33@
sDL_wcsncasecmp
  :: PtrConst.PtrConst HsBindgen.Runtime.LibC.CWchar
  -- ^
  --
  --           [@str1@]: the first string to compare. NULL is not permitted!
  -> PtrConst.PtrConst HsBindgen.Runtime.LibC.CWchar
  -- ^
  --
  --           [@str2@]: the second string to compare. NULL is not permitted!
  -> HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@maxlen@]: the maximum number of wchar_t values to compare.
  -> IO BG.CInt
sDL_wcsncasecmp = hs_bindgen_1c13738568f12d1d

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strlen@
foreign import ccall unsafe "hs_bindgen_59a6bfea24e96b34"
  hs_bindgen_59a6bfea24e96b34_base
    :: BG.Ptr BG.Void
    -> IO BG.Word64

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strlen@
hs_bindgen_59a6bfea24e96b34
  :: PtrConst.PtrConst BG.CChar
  -> IO HsBindgen.Runtime.LibC.CSize
hs_bindgen_59a6bfea24e96b34 =
  BG.fromFFIType hs_bindgen_59a6bfea24e96b34_base

-- | This works exactly like strlen() but doesn\'t require access to a C runtime.
--
--     Counts the bytes in @str@, excluding the null terminator.
--
--     If you need the length of a UTF-8 string, consider using @SDL_utf8strlen()@.
--
--     [Returns]: the length (in bytes, excluding the null terminator) of @src@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_strnlen', 'sDL_utf8strlen', 'sDL_utf8strnlen'
--
--     [C declaration]: @SDL_strlen@, defined at @SDL3\/SDL_stdinc.h 3029:36@
sDL_strlen
  :: PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@str@]: The null-terminated string to read. Must not be NULL.
  -> IO HsBindgen.Runtime.LibC.CSize
sDL_strlen = hs_bindgen_59a6bfea24e96b34

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strnlen@
foreign import ccall unsafe "hs_bindgen_c8b4424317df84e9"
  hs_bindgen_c8b4424317df84e9_base
    :: BG.Ptr BG.Void
    -> BG.Word64
    -> IO BG.Word64

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strnlen@
hs_bindgen_c8b4424317df84e9
  :: PtrConst.PtrConst BG.CChar
  -> HsBindgen.Runtime.LibC.CSize
  -> IO HsBindgen.Runtime.LibC.CSize
hs_bindgen_c8b4424317df84e9 =
  BG.fromFFIType hs_bindgen_c8b4424317df84e9_base

-- | This works exactly like strnlen() but doesn\'t require access to a C runtime.
--
--     Counts up to a maximum of @maxlen@ bytes in @str@, excluding the null terminator.
--
--     If you need the length of a UTF-8 string, consider using @SDL_utf8strnlen()@.
--
--     [Returns]: the length (in bytes, excluding the null terminator) of @src@ but never more than @maxlen@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_strlen', 'sDL_utf8strlen', 'sDL_utf8strnlen'
--
--     [C declaration]: @SDL_strnlen@, defined at @SDL3\/SDL_stdinc.h 3053:36@
sDL_strnlen
  :: PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@str@]: The null-terminated string to read. Must not be NULL.
  -> HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@maxlen@]: The maximum amount of bytes to count.
  -> IO HsBindgen.Runtime.LibC.CSize
sDL_strnlen = hs_bindgen_c8b4424317df84e9

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strlcpy@
foreign import ccall unsafe "hs_bindgen_e26f240b36c1f7f4"
  hs_bindgen_e26f240b36c1f7f4_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> BG.Word64
    -> IO BG.Word64

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strlcpy@
hs_bindgen_e26f240b36c1f7f4
  :: BG.Ptr BG.CChar
  -> PtrConst.PtrConst BG.CChar
  -> HsBindgen.Runtime.LibC.CSize
  -> IO HsBindgen.Runtime.LibC.CSize
hs_bindgen_e26f240b36c1f7f4 =
  BG.fromFFIType hs_bindgen_e26f240b36c1f7f4_base

-- | Copy a string.
--
--     This function copies up to @maxlen@ - 1 characters from @src@ to @dst@, then appends a null terminator.
--
--     If @maxlen@ is 0, no characters are copied and no null terminator is written.
--
--     If you want to copy an UTF-8 string but need to ensure that multi-byte sequences are not truncated, consider using @SDL_utf8strlcpy()@.
--
--     [Returns]: the length (in characters, excluding the null terminator) of @src@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_strlcat', 'sDL_utf8strlcpy'
--
--     [C declaration]: @SDL_strlcpy@, defined at @SDL3\/SDL_stdinc.h 3082:36@
sDL_strlcpy
  :: BG.Ptr BG.CChar
  -- ^
  --
  --           [@dst@]: The destination buffer. Must not be NULL, and must not overlap with @src@.
  -> PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@src@]: The null-terminated string to copy. Must not be NULL, and must not overlap with @dst@.
  -> HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@maxlen@]: The length (in characters) of the destination buffer.
  -> IO HsBindgen.Runtime.LibC.CSize
sDL_strlcpy = hs_bindgen_e26f240b36c1f7f4

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_utf8strlcpy@
foreign import ccall unsafe "hs_bindgen_a6570a6c65177caf"
  hs_bindgen_a6570a6c65177caf_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> BG.Word64
    -> IO BG.Word64

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_utf8strlcpy@
hs_bindgen_a6570a6c65177caf
  :: BG.Ptr BG.CChar
  -> PtrConst.PtrConst BG.CChar
  -> HsBindgen.Runtime.LibC.CSize
  -> IO HsBindgen.Runtime.LibC.CSize
hs_bindgen_a6570a6c65177caf =
  BG.fromFFIType hs_bindgen_a6570a6c65177caf_base

-- | Copy an UTF-8 string.
--
--     This function copies up to @dst_bytes@ - 1 bytes from @src@ to @dst@ while also ensuring that the string written to @dst@ does not end in a truncated multi-byte sequence. Finally, it appends a null terminator.
--
--     @src@ and @dst@ must not overlap.
--
--     Note that unlike @SDL_strlcpy()@, this function returns the number of bytes written, not the length of @src@.
--
--     [Returns]: the number of bytes written, excluding the null terminator.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_strlcpy'
--
--     [C declaration]: @SDL_utf8strlcpy@, defined at @SDL3\/SDL_stdinc.h 3110:36@
sDL_utf8strlcpy
  :: BG.Ptr BG.CChar
  -- ^
  --
  --           [@dst@]: The destination buffer. Must not be NULL, and must not overlap with @src@.
  -> PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@src@]: The null-terminated UTF-8 string to copy. Must not be NULL, and must not overlap with @dst@.
  -> HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@dst_bytes@]: The length (in bytes) of the destination buffer. Must not be 0.
  -> IO HsBindgen.Runtime.LibC.CSize
sDL_utf8strlcpy = hs_bindgen_a6570a6c65177caf

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strlcat@
foreign import ccall unsafe "hs_bindgen_6776d8c4c9824b69"
  hs_bindgen_6776d8c4c9824b69_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> BG.Word64
    -> IO BG.Word64

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strlcat@
hs_bindgen_6776d8c4c9824b69
  :: BG.Ptr BG.CChar
  -> PtrConst.PtrConst BG.CChar
  -> HsBindgen.Runtime.LibC.CSize
  -> IO HsBindgen.Runtime.LibC.CSize
hs_bindgen_6776d8c4c9824b69 =
  BG.fromFFIType hs_bindgen_6776d8c4c9824b69_base

-- | Concatenate strings.
--
--     This function appends up to @maxlen@ - SDL_strlen(dst) - 1 characters from @src@ to the end of the string in @dst@, then appends a null terminator.
--
--     @src@ and @dst@ must not overlap.
--
--     If @maxlen@ - SDL_strlen(dst) - 1 is less than or equal to 0, then @dst@ is unmodified.
--
--     [Returns]: the length (in characters, excluding the null terminator) of the string in @dst@ plus the length of @src@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_strlcpy'
--
--     [C declaration]: @SDL_strlcat@, defined at @SDL3\/SDL_stdinc.h 3138:36@
sDL_strlcat
  :: BG.Ptr BG.CChar
  -- ^
  --
  --           [@dst@]: The destination buffer already containing the first null-terminated string. Must not be NULL and must not overlap with @src@.
  -> PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@src@]: The second null-terminated string. Must not be NULL, and must not overlap with @dst@.
  -> HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@maxlen@]: The length (in characters) of the destination buffer.
  -> IO HsBindgen.Runtime.LibC.CSize
sDL_strlcat = hs_bindgen_6776d8c4c9824b69

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strdup@
foreign import ccall unsafe "hs_bindgen_642470a5439764a1"
  hs_bindgen_642470a5439764a1_base
    :: BG.Ptr BG.Void
    -> IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strdup@
hs_bindgen_642470a5439764a1
  :: PtrConst.PtrConst BG.CChar
  -> IO (BG.Ptr BG.CChar)
hs_bindgen_642470a5439764a1 =
  BG.fromFFIType hs_bindgen_642470a5439764a1_base

-- | Allocate a copy of a string.
--
--     This allocates enough space for a null-terminated copy of @str@, using SDL_malloc, and then makes a copy of the string into this space.
--
--     The returned string is owned by the caller, and should be passed to SDL_free when no longer needed.
--
--     [Returns]: a pointer to the newly-allocated string.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_strdup@, defined at @SDL3\/SDL_stdinc.h 3156:47@
sDL_strdup
  :: PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@str@]: the string to copy.
  -> IO (BG.Ptr BG.CChar)
sDL_strdup = hs_bindgen_642470a5439764a1

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strndup@
foreign import ccall unsafe "hs_bindgen_2d11135d4a4cd09d"
  hs_bindgen_2d11135d4a4cd09d_base
    :: BG.Ptr BG.Void
    -> BG.Word64
    -> IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strndup@
hs_bindgen_2d11135d4a4cd09d
  :: PtrConst.PtrConst BG.CChar
  -> HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr BG.CChar)
hs_bindgen_2d11135d4a4cd09d =
  BG.fromFFIType hs_bindgen_2d11135d4a4cd09d_base

-- | Allocate a copy of a string, up to n characters.
--
--     This allocates enough space for a null-terminated copy of @str@, up to @maxlen@ bytes, using SDL_malloc, and then makes a copy of the string into this space.
--
--     If the string is longer than @maxlen@ bytes, the returned string will be @maxlen@ bytes long, plus a null-terminator character that isn\'t included in the count.
--
--     The returned string is owned by the caller, and should be passed to SDL_free when no longer needed.
--
--     [Returns]: a pointer to the newly-allocated string.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_strndup@, defined at @SDL3\/SDL_stdinc.h 3181:47@
sDL_strndup
  :: PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@str@]: the string to copy.
  -> HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@maxlen@]: the maximum length of the copied string, not counting the null-terminator character.
  -> IO (BG.Ptr BG.CChar)
sDL_strndup = hs_bindgen_2d11135d4a4cd09d

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strrev@
foreign import ccall unsafe "hs_bindgen_3e344b4dbd1fefd5"
  hs_bindgen_3e344b4dbd1fefd5_base
    :: BG.Ptr BG.Void
    -> IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strrev@
hs_bindgen_3e344b4dbd1fefd5
  :: BG.Ptr BG.CChar
  -> IO (BG.Ptr BG.CChar)
hs_bindgen_3e344b4dbd1fefd5 =
  BG.fromFFIType hs_bindgen_3e344b4dbd1fefd5_base

-- | Reverse a string\'s contents.
--
--     This reverses a null-terminated string in-place. Only the content of the string is reversed; the null-terminator character remains at the end of the reversed string.
--
--     __WARNING__: This function reverses the /bytes/ of the string, not the codepoints. If @str@ is a UTF-8 string with Unicode codepoints > 127, this will ruin the string data. You should only use this function on strings that are completely comprised of low ASCII characters.
--
--     [Returns]: @str@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_strrev@, defined at @SDL3\/SDL_stdinc.h 3202:36@
sDL_strrev
  :: BG.Ptr BG.CChar
  -- ^
  --
  --           [@str@]: the string to reverse.
  -> IO (BG.Ptr BG.CChar)
sDL_strrev = hs_bindgen_3e344b4dbd1fefd5

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strupr@
foreign import ccall unsafe "hs_bindgen_2a6a16beae86f690"
  hs_bindgen_2a6a16beae86f690_base
    :: BG.Ptr BG.Void
    -> IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strupr@
hs_bindgen_2a6a16beae86f690
  :: BG.Ptr BG.CChar
  -> IO (BG.Ptr BG.CChar)
hs_bindgen_2a6a16beae86f690 =
  BG.fromFFIType hs_bindgen_2a6a16beae86f690_base

-- | Convert a string to uppercase.
--
--     __WARNING__: Regardless of system locale, this will only convert ASCII values \'A\' through \'Z\' to uppercase.
--
--     This function operates on a null-terminated string of bytes even if it is malformed UTF-8! and converts ASCII characters \'a\' through \'z\' to their uppercase equivalents in-place, returning the original @str@ pointer.
--
--     [Returns]: the @str@ pointer passed into this function.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_strlwr'
--
--     [C declaration]: @SDL_strupr@, defined at @SDL3\/SDL_stdinc.h 3223:36@
sDL_strupr
  :: BG.Ptr BG.CChar
  -- ^
  --
  --           [@str@]: the string to convert in-place. Can not be NULL.
  -> IO (BG.Ptr BG.CChar)
sDL_strupr = hs_bindgen_2a6a16beae86f690

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strlwr@
foreign import ccall unsafe "hs_bindgen_d398f95cc6b941fb"
  hs_bindgen_d398f95cc6b941fb_base
    :: BG.Ptr BG.Void
    -> IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strlwr@
hs_bindgen_d398f95cc6b941fb
  :: BG.Ptr BG.CChar
  -> IO (BG.Ptr BG.CChar)
hs_bindgen_d398f95cc6b941fb =
  BG.fromFFIType hs_bindgen_d398f95cc6b941fb_base

-- | Convert a string to lowercase.
--
--     __WARNING__: Regardless of system locale, this will only convert ASCII values \'A\' through \'Z\' to lowercase.
--
--     This function operates on a null-terminated string of bytes even if it is malformed UTF-8! and converts ASCII characters \'A\' through \'Z\' to their lowercase equivalents in-place, returning the original @str@ pointer.
--
--     [Returns]: the @str@ pointer passed into this function.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_strupr'
--
--     [C declaration]: @SDL_strlwr@, defined at @SDL3\/SDL_stdinc.h 3244:36@
sDL_strlwr
  :: BG.Ptr BG.CChar
  -- ^
  --
  --           [@str@]: the string to convert in-place. Can not be NULL.
  -> IO (BG.Ptr BG.CChar)
sDL_strlwr = hs_bindgen_d398f95cc6b941fb

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strchr@
foreign import ccall unsafe "hs_bindgen_ce84b72a37d721aa"
  hs_bindgen_ce84b72a37d721aa_base
    :: BG.Ptr BG.Void
    -> BG.Int32
    -> IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strchr@
hs_bindgen_ce84b72a37d721aa
  :: PtrConst.PtrConst BG.CChar
  -> BG.CInt
  -> IO (BG.Ptr BG.CChar)
hs_bindgen_ce84b72a37d721aa =
  BG.fromFFIType hs_bindgen_ce84b72a37d721aa_base

-- | Search a string for the first instance of a specific byte.
--
--     The search ends once it finds the requested byte value, or a null terminator byte to end the string.
--
--     Note that this looks for /bytes/, not /characters/, so you cannot match against a Unicode codepoint > 255, regardless of character encoding.
--
--     [Returns]: a pointer to the first instance of @c@ in the string, or NULL if not found.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_strchr@, defined at @SDL3\/SDL_stdinc.h 3264:36@
sDL_strchr
  :: PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@str@]: the string to search. Must not be NULL.
  -> BG.CInt
  -- ^
  --
  --           [@c@]: the byte value to search for.
  -> IO (BG.Ptr BG.CChar)
sDL_strchr = hs_bindgen_ce84b72a37d721aa

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strrchr@
foreign import ccall unsafe "hs_bindgen_42f6725f3eb6c437"
  hs_bindgen_42f6725f3eb6c437_base
    :: BG.Ptr BG.Void
    -> BG.Int32
    -> IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strrchr@
hs_bindgen_42f6725f3eb6c437
  :: PtrConst.PtrConst BG.CChar
  -> BG.CInt
  -> IO (BG.Ptr BG.CChar)
hs_bindgen_42f6725f3eb6c437 =
  BG.fromFFIType hs_bindgen_42f6725f3eb6c437_base

-- | Search a string for the last instance of a specific byte.
--
--     The search must go until it finds a null terminator byte to end the string.
--
--     Note that this looks for /bytes/, not /characters/, so you cannot match against a Unicode codepoint > 255, regardless of character encoding.
--
--     [Returns]: a pointer to the last instance of @c@ in the string, or NULL if not found.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_strrchr@, defined at @SDL3\/SDL_stdinc.h 3283:36@
sDL_strrchr
  :: PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@str@]: the string to search. Must not be NULL.
  -> BG.CInt
  -- ^
  --
  --           [@c@]: the byte value to search for.
  -> IO (BG.Ptr BG.CChar)
sDL_strrchr = hs_bindgen_42f6725f3eb6c437

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strstr@
foreign import ccall unsafe "hs_bindgen_4dd450b42cd71d7b"
  hs_bindgen_4dd450b42cd71d7b_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strstr@
hs_bindgen_4dd450b42cd71d7b
  :: PtrConst.PtrConst BG.CChar
  -> PtrConst.PtrConst BG.CChar
  -> IO (BG.Ptr BG.CChar)
hs_bindgen_4dd450b42cd71d7b =
  BG.fromFFIType hs_bindgen_4dd450b42cd71d7b_base

-- | Search a string for the first instance of a specific substring.
--
--     The search ends once it finds the requested substring, or a null terminator byte to end the string.
--
--     Note that this looks for strings of /bytes/, not /characters/, so it\'s legal to search for malformed and incomplete UTF-8 sequences.
--
--     [Returns]: a pointer to the first instance of @needle@ in the string, or NULL if not found.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_strstr@, defined at @SDL3\/SDL_stdinc.h 3303:36@
sDL_strstr
  :: PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@haystack@]: the string to search. Must not be NULL.
  -> PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@needle@]: the string to search for. Must not be NULL.
  -> IO (BG.Ptr BG.CChar)
sDL_strstr = hs_bindgen_4dd450b42cd71d7b

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strnstr@
foreign import ccall unsafe "hs_bindgen_84a9d060fbe6dadf"
  hs_bindgen_84a9d060fbe6dadf_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> BG.Word64
    -> IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strnstr@
hs_bindgen_84a9d060fbe6dadf
  :: PtrConst.PtrConst BG.CChar
  -> PtrConst.PtrConst BG.CChar
  -> HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr BG.CChar)
hs_bindgen_84a9d060fbe6dadf =
  BG.fromFFIType hs_bindgen_84a9d060fbe6dadf_base

-- | Search a string, up to n bytes, for the first instance of a specific substring.
--
--     The search ends once it finds the requested substring, or a null terminator byte to end the string, or @maxlen@ bytes have been examined. It is possible to use this function on a string without a null terminator.
--
--     Note that this looks for strings of /bytes/, not /characters/, so it\'s legal to search for malformed and incomplete UTF-8 sequences.
--
--     [Returns]: a pointer to the first instance of @needle@ in the string, or NULL if not found.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_strnstr@, defined at @SDL3\/SDL_stdinc.h 3326:36@
sDL_strnstr
  :: PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@haystack@]: the string to search. Must not be NULL.
  -> PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@needle@]: the string to search for. Must not be NULL.
  -> HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@maxlen@]: the maximum number of bytes to search in @haystack@.
  -> IO (BG.Ptr BG.CChar)
sDL_strnstr = hs_bindgen_84a9d060fbe6dadf

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strcasestr@
foreign import ccall unsafe "hs_bindgen_81f801141b3ad731"
  hs_bindgen_81f801141b3ad731_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strcasestr@
hs_bindgen_81f801141b3ad731
  :: PtrConst.PtrConst BG.CChar
  -> PtrConst.PtrConst BG.CChar
  -> IO (BG.Ptr BG.CChar)
hs_bindgen_81f801141b3ad731 =
  BG.fromFFIType hs_bindgen_81f801141b3ad731_base

-- | Search a UTF-8 string for the first instance of a specific substring, case-insensitively.
--
--     This will work with Unicode strings, using a technique called \"case-folding\" to handle the vast majority of case-sensitive human languages regardless of system locale. It can deal with expanding values: a German Eszett character can compare against two ASCII \'s\' chars and be considered a match, for example. A notable exception: it does not handle the Turkish \'i\' character; human language is complicated!
--
--     Since this handles Unicode, it expects the strings to be well-formed UTF-8 and not a null-terminated string of arbitrary bytes. Bytes that are not valid UTF-8 are treated as Unicode character U+FFFD (REPLACEMENT CHARACTER), which is to say two strings of random bits may turn out to match if they convert to the same amount of replacement characters.
--
--     [Returns]: a pointer to the first instance of @needle@ in the string, or NULL if not found.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_strcasestr@, defined at @SDL3\/SDL_stdinc.h 3354:36@
sDL_strcasestr
  :: PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@haystack@]: the string to search. Must not be NULL.
  -> PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@needle@]: the string to search for. Must not be NULL.
  -> IO (BG.Ptr BG.CChar)
sDL_strcasestr = hs_bindgen_81f801141b3ad731

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strtok_r@
foreign import ccall unsafe "hs_bindgen_409faece247c319b"
  hs_bindgen_409faece247c319b_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strtok_r@
hs_bindgen_409faece247c319b
  :: BG.Ptr BG.CChar
  -> PtrConst.PtrConst BG.CChar
  -> BG.Ptr (BG.Ptr BG.CChar)
  -> IO (BG.Ptr BG.CChar)
hs_bindgen_409faece247c319b =
  BG.fromFFIType hs_bindgen_409faece247c319b_base

-- | This works exactly like strtok_r() but doesn\'t require access to a C runtime.
--
--     Break a string up into a series of tokens.
--
--     To start tokenizing a new string, @str@ should be the non-NULL address of the string to start tokenizing. Future calls to get the next token from the same string should specify a NULL.
--
--     Note that this function will overwrite pieces of @str@ with null chars to split it into tokens. This function cannot be used with const\/read-only strings!
--
--     @saveptr@ just needs to point to a @char *@ that can be overwritten; SDL will use this to save tokenizing state between calls. It is initialized if @str@ is non-NULL, and used to resume tokenizing when @str@ is NULL.
--
--     [Returns]: A pointer to the next token, or NULL if no tokens remain.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_strtok_r@, defined at @SDL3\/SDL_stdinc.h 3383:36@
sDL_strtok_r
  :: BG.Ptr BG.CChar
  -- ^
  --
  --           [@str@]: the string to tokenize, or NULL to continue tokenizing.
  -> PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@delim@]: the delimiter string that separates tokens.
  -> BG.Ptr (BG.Ptr BG.CChar)
  -- ^
  --
  --           [@saveptr@]: pointer to a char *, used for ongoing state.
  -> IO (BG.Ptr BG.CChar)
sDL_strtok_r = hs_bindgen_409faece247c319b

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_utf8strlen@
foreign import ccall unsafe "hs_bindgen_36470941402cdd53"
  hs_bindgen_36470941402cdd53_base
    :: BG.Ptr BG.Void
    -> IO BG.Word64

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_utf8strlen@
hs_bindgen_36470941402cdd53
  :: PtrConst.PtrConst BG.CChar
  -> IO HsBindgen.Runtime.LibC.CSize
hs_bindgen_36470941402cdd53 =
  BG.fromFFIType hs_bindgen_36470941402cdd53_base

-- | Count the number of codepoints in a UTF-8 string.
--
--     Counts the /codepoints/, not /bytes/, in @str@, excluding the null terminator.
--
--     If you need to count the bytes in a string instead, consider using @SDL_strlen()@.
--
--     Since this handles Unicode, it expects the strings to be well-formed UTF-8 and not a null-terminated string of arbitrary bytes. Bytes that are not valid UTF-8 are treated as Unicode character U+FFFD (REPLACEMENT CHARACTER), so a malformed or incomplete UTF-8 sequence might increase the count by several replacement characters.
--
--     [Returns]: The length (in codepoints, excluding the null terminator) of @src@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_utf8strnlen', 'sDL_strlen'
--
--     [C declaration]: @SDL_utf8strlen@, defined at @SDL3\/SDL_stdinc.h 3411:36@
sDL_utf8strlen
  :: PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@str@]: The null-terminated UTF-8 string to read. Must not be NULL.
  -> IO HsBindgen.Runtime.LibC.CSize
sDL_utf8strlen = hs_bindgen_36470941402cdd53

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_utf8strnlen@
foreign import ccall unsafe "hs_bindgen_479082db51ecf46b"
  hs_bindgen_479082db51ecf46b_base
    :: BG.Ptr BG.Void
    -> BG.Word64
    -> IO BG.Word64

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_utf8strnlen@
hs_bindgen_479082db51ecf46b
  :: PtrConst.PtrConst BG.CChar
  -> HsBindgen.Runtime.LibC.CSize
  -> IO HsBindgen.Runtime.LibC.CSize
hs_bindgen_479082db51ecf46b =
  BG.fromFFIType hs_bindgen_479082db51ecf46b_base

-- | Count the number of codepoints in a UTF-8 string, up to n bytes.
--
--     Counts the /codepoints/, not /bytes/, in @str@, excluding the null terminator.
--
--     If you need to count the bytes in a string instead, consider using @SDL_strnlen()@.
--
--     The counting stops at @bytes@ bytes (not codepoints!). This seems counterintuitive, but makes it easy to express the total size of the string\'s buffer.
--
--     Since this handles Unicode, it expects the strings to be well-formed UTF-8 and not a null-terminated string of arbitrary bytes. Bytes that are not valid UTF-8 are treated as Unicode character U+FFFD (REPLACEMENT CHARACTER), so a malformed or incomplete UTF-8 sequence might increase the count by several replacement characters.
--
--     [Returns]: The length (in codepoints, excluding the null terminator) of @src@ but never more than @maxlen@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_utf8strlen', 'sDL_strnlen'
--
--     [C declaration]: @SDL_utf8strnlen@, defined at @SDL3\/SDL_stdinc.h 3444:36@
sDL_utf8strnlen
  :: PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@str@]: The null-terminated UTF-8 string to read. Must not be NULL.
  -> HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@bytes@]: The maximum amount of bytes to count.
  -> IO HsBindgen.Runtime.LibC.CSize
sDL_utf8strnlen = hs_bindgen_479082db51ecf46b

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_itoa@
foreign import ccall unsafe "hs_bindgen_c69b2ef36677f953"
  hs_bindgen_c69b2ef36677f953_base
    :: BG.Int32
    -> BG.Ptr BG.Void
    -> BG.Int32
    -> IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_itoa@
hs_bindgen_c69b2ef36677f953
  :: BG.CInt
  -> BG.Ptr BG.CChar
  -> BG.CInt
  -> IO (BG.Ptr BG.CChar)
hs_bindgen_c69b2ef36677f953 =
  BG.fromFFIType hs_bindgen_c69b2ef36677f953_base

-- | Convert an integer into a string.
--
--     This requires a radix to specified for string format. Specifying 10 produces a decimal number, 16 hexadecimal, etc. Must be in the range of 2 to 36.
--
--     Note that this function will overflow a buffer if @str@ is not large enough to hold the output! It may be safer to use SDL_snprintf to clamp output, or SDL_asprintf to allocate a buffer. Otherwise, it doesn\'t hurt to allocate much more space than you expect to use (and don\'t forget possible negative signs, null terminator bytes, etc).
--
--     [Returns]: @str@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_uitoa', @SDL_ltoa@, 'sDL_lltoa'
--
--     [C declaration]: @SDL_itoa@, defined at @SDL3\/SDL_stdinc.h 3472:36@
sDL_itoa
  :: BG.CInt
  -- ^
  --
  --           [@value@]: the integer to convert.
  -> BG.Ptr BG.CChar
  -- ^
  --
  --           [@str@]: the buffer to write the string into.
  -> BG.CInt
  -- ^
  --
  --           [@radix@]: the radix to use for string generation.
  -> IO (BG.Ptr BG.CChar)
sDL_itoa = hs_bindgen_c69b2ef36677f953

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_uitoa@
foreign import ccall unsafe "hs_bindgen_dbe69ee767be00c8"
  hs_bindgen_dbe69ee767be00c8_base
    :: BG.Word32
    -> BG.Ptr BG.Void
    -> BG.Int32
    -> IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_uitoa@
hs_bindgen_dbe69ee767be00c8
  :: BG.CUInt
  -> BG.Ptr BG.CChar
  -> BG.CInt
  -> IO (BG.Ptr BG.CChar)
hs_bindgen_dbe69ee767be00c8 =
  BG.fromFFIType hs_bindgen_dbe69ee767be00c8_base

-- | Convert an unsigned integer into a string.
--
--     This requires a radix to specified for string format. Specifying 10 produces a decimal number, 16 hexadecimal, etc. Must be in the range of 2 to 36.
--
--     Note that this function will overflow a buffer if @str@ is not large enough to hold the output! It may be safer to use SDL_snprintf to clamp output, or SDL_asprintf to allocate a buffer. Otherwise, it doesn\'t hurt to allocate much more space than you expect to use (and don\'t forget null terminator bytes, etc).
--
--     [Returns]: @str@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_itoa', @SDL_ultoa@, 'sDL_ulltoa'
--
--     [C declaration]: @SDL_uitoa@, defined at @SDL3\/SDL_stdinc.h 3500:36@
sDL_uitoa
  :: BG.CUInt
  -- ^
  --
  --           [@value@]: the unsigned integer to convert.
  -> BG.Ptr BG.CChar
  -- ^
  --
  --           [@str@]: the buffer to write the string into.
  -> BG.CInt
  -- ^
  --
  --           [@radix@]: the radix to use for string generation.
  -> IO (BG.Ptr BG.CChar)
sDL_uitoa = hs_bindgen_dbe69ee767be00c8

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_lltoa@
foreign import ccall unsafe "hs_bindgen_94ca108dca07ec6f"
  hs_bindgen_94ca108dca07ec6f_base
    :: BG.Int64
    -> BG.Ptr BG.Void
    -> BG.Int32
    -> IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_lltoa@
hs_bindgen_94ca108dca07ec6f
  :: BG.CLLong
  -> BG.Ptr BG.CChar
  -> BG.CInt
  -> IO (BG.Ptr BG.CChar)
hs_bindgen_94ca108dca07ec6f =
  BG.fromFFIType hs_bindgen_94ca108dca07ec6f_base

-- | Convert a long long integer into a string.
--
--     This requires a radix to specified for string format. Specifying 10 produces a decimal number, 16 hexadecimal, etc. Must be in the range of 2 to 36.
--
--     Note that this function will overflow a buffer if @str@ is not large enough to hold the output! It may be safer to use SDL_snprintf to clamp output, or SDL_asprintf to allocate a buffer. Otherwise, it doesn\'t hurt to allocate much more space than you expect to use (and don\'t forget possible negative signs, null terminator bytes, etc).
--
--     [Returns]: @str@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_ulltoa', 'sDL_itoa', @SDL_ltoa@
--
--     [C declaration]: @SDL_lltoa@, defined at @SDL3\/SDL_stdinc.h 3586:36@
sDL_lltoa
  :: BG.CLLong
  -- ^
  --
  --           [@value@]: the long long integer to convert.
  -> BG.Ptr BG.CChar
  -- ^
  --
  --           [@str@]: the buffer to write the string into.
  -> BG.CInt
  -- ^
  --
  --           [@radix@]: the radix to use for string generation.
  -> IO (BG.Ptr BG.CChar)
sDL_lltoa = hs_bindgen_94ca108dca07ec6f

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_ulltoa@
foreign import ccall unsafe "hs_bindgen_d122b88ccc45fe33"
  hs_bindgen_d122b88ccc45fe33_base
    :: BG.Word64
    -> BG.Ptr BG.Void
    -> BG.Int32
    -> IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_ulltoa@
hs_bindgen_d122b88ccc45fe33
  :: BG.CULLong
  -> BG.Ptr BG.CChar
  -> BG.CInt
  -> IO (BG.Ptr BG.CChar)
hs_bindgen_d122b88ccc45fe33 =
  BG.fromFFIType hs_bindgen_d122b88ccc45fe33_base

-- | Convert an unsigned long long integer into a string.
--
--     This requires a radix to specified for string format. Specifying 10 produces a decimal number, 16 hexadecimal, etc. Must be in the range of 2 to 36.
--
--     Note that this function will overflow a buffer if @str@ is not large enough to hold the output! It may be safer to use SDL_snprintf to clamp output, or SDL_asprintf to allocate a buffer. Otherwise, it doesn\'t hurt to allocate much more space than you expect to use (and don\'t forget null terminator bytes, etc).
--
--     [Returns]: @str@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_lltoa', 'sDL_uitoa', @SDL_ultoa@
--
--     [C declaration]: @SDL_ulltoa@, defined at @SDL3\/SDL_stdinc.h 3614:36@
sDL_ulltoa
  :: BG.CULLong
  -- ^
  --
  --           [@value@]: the unsigned long long integer to convert.
  -> BG.Ptr BG.CChar
  -- ^
  --
  --           [@str@]: the buffer to write the string into.
  -> BG.CInt
  -- ^
  --
  --           [@radix@]: the radix to use for string generation.
  -> IO (BG.Ptr BG.CChar)
sDL_ulltoa = hs_bindgen_d122b88ccc45fe33

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_atoi@
foreign import ccall unsafe "hs_bindgen_ca9f4297368b5437"
  hs_bindgen_ca9f4297368b5437_base
    :: BG.Ptr BG.Void
    -> IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_atoi@
hs_bindgen_ca9f4297368b5437
  :: PtrConst.PtrConst BG.CChar
  -> IO BG.CInt
hs_bindgen_ca9f4297368b5437 =
  BG.fromFFIType hs_bindgen_ca9f4297368b5437_base

-- | Parse an @int@ from a string.
--
--     The result of calling @SDL_atoi(str)@ is equivalent to @(int)SDL_strtol(str, NULL, 10)@.
--
--     [Returns]: the parsed @int@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_atof', @SDL_strtol@, @SDL_strtoul@, 'sDL_strtoll', 'sDL_strtoull', 'sDL_strtod', 'sDL_itoa'
--
--     [C declaration]: @SDL_atoi@, defined at @SDL3\/SDL_stdinc.h 3638:33@
sDL_atoi
  :: PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@str@]: The null-terminated string to read. Must not be NULL.
  -> IO BG.CInt
sDL_atoi = hs_bindgen_ca9f4297368b5437

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_atof@
foreign import ccall unsafe "hs_bindgen_81f2fcbff595d766"
  hs_bindgen_81f2fcbff595d766_base
    :: BG.Ptr BG.Void
    -> IO Double

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_atof@
hs_bindgen_81f2fcbff595d766
  :: PtrConst.PtrConst BG.CChar
  -> IO BG.CDouble
hs_bindgen_81f2fcbff595d766 =
  BG.fromFFIType hs_bindgen_81f2fcbff595d766_base

-- | Parse a @double@ from a string.
--
--     The result of calling @SDL_atof(str)@ is equivalent to @SDL_strtod(str, NULL)@.
--
--     [Returns]: the parsed @double@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_atoi', @SDL_strtol@, @SDL_strtoul@, 'sDL_strtoll', 'sDL_strtoull', 'sDL_strtod'
--
--     [C declaration]: @SDL_atof@, defined at @SDL3\/SDL_stdinc.h 3660:36@
sDL_atof
  :: PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@str@]: The null-terminated string to read. Must not be NULL.
  -> IO BG.CDouble
sDL_atof = hs_bindgen_81f2fcbff595d766

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strtoll@
foreign import ccall unsafe "hs_bindgen_29424912342d9a55"
  hs_bindgen_29424912342d9a55_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> BG.Int32
    -> IO BG.Int64

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strtoll@
hs_bindgen_29424912342d9a55
  :: PtrConst.PtrConst BG.CChar
  -> BG.Ptr (BG.Ptr BG.CChar)
  -> BG.CInt
  -> IO BG.CLLong
hs_bindgen_29424912342d9a55 =
  BG.fromFFIType hs_bindgen_29424912342d9a55_base

-- | Parse a @long long@ from a string.
--
--     If @str@ starts with whitespace, then those whitespace characters are skipped before attempting to parse the number.
--
--     If the parsed number does not fit inside a @long long@, the result is clamped to the minimum and maximum representable @long long@ values.
--
--     [Returns]: the parsed @long long@, or 0 if no number could be parsed.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_atoi', 'sDL_atof', @SDL_strtol@, @SDL_strtoul@, 'sDL_strtoull', 'sDL_strtod', 'sDL_lltoa'
--
--     [C declaration]: @SDL_strtoll@, defined at @SDL3\/SDL_stdinc.h 3762:39@
sDL_strtoll
  :: PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@str@]: The null-terminated string to read. Must not be NULL.
  -> BG.Ptr (BG.Ptr BG.CChar)
  -- ^
  --
  --           [@endp@]: If not NULL, the address of the first invalid character (i.e. the next character after the parsed number) will be written to this pointer.
  -> BG.CInt
  -- ^
  --
  --           [@base@]: The base of the integer to read. Supported values are 0 and 2 to 36 inclusive. If 0, the base will be inferred from the number\'s prefix (0x for hexadecimal, 0 for octal, decimal otherwise).
  -> IO BG.CLLong
sDL_strtoll = hs_bindgen_29424912342d9a55

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strtoull@
foreign import ccall unsafe "hs_bindgen_fe908f5a8d183e7b"
  hs_bindgen_fe908f5a8d183e7b_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> BG.Int32
    -> IO BG.Word64

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strtoull@
hs_bindgen_fe908f5a8d183e7b
  :: PtrConst.PtrConst BG.CChar
  -> BG.Ptr (BG.Ptr BG.CChar)
  -> BG.CInt
  -> IO BG.CULLong
hs_bindgen_fe908f5a8d183e7b =
  BG.fromFFIType hs_bindgen_fe908f5a8d183e7b_base

-- | Parse an @unsigned long long@ from a string.
--
--     If @str@ starts with whitespace, then those whitespace characters are skipped before attempting to parse the number.
--
--     If the parsed number does not fit inside an @unsigned long long@, the result is clamped to the maximum representable @unsigned long long@ value.
--
--     [Returns]: the parsed @unsigned long long@, or 0 if no number could be parsed.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_atoi', 'sDL_atof', @SDL_strtol@, 'sDL_strtoll', @SDL_strtoul@, 'sDL_strtod', 'sDL_ulltoa'
--
--     [C declaration]: @SDL_strtoull@, defined at @SDL3\/SDL_stdinc.h 3796:48@
sDL_strtoull
  :: PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@str@]: The null-terminated string to read. Must not be NULL.
  -> BG.Ptr (BG.Ptr BG.CChar)
  -- ^
  --
  --           [@endp@]: If not NULL, the address of the first invalid character (i.e. the next character after the parsed number) will be written to this pointer.
  -> BG.CInt
  -- ^
  --
  --           [@base@]: The base of the integer to read. Supported values are 0 and 2 to 36 inclusive. If 0, the base will be inferred from the number\'s prefix (0x for hexadecimal, 0 for octal, decimal otherwise).
  -> IO BG.CULLong
sDL_strtoull = hs_bindgen_fe908f5a8d183e7b

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strtod@
foreign import ccall unsafe "hs_bindgen_93115f1648467a21"
  hs_bindgen_93115f1648467a21_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> IO Double

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strtod@
hs_bindgen_93115f1648467a21
  :: PtrConst.PtrConst BG.CChar
  -> BG.Ptr (BG.Ptr BG.CChar)
  -> IO BG.CDouble
hs_bindgen_93115f1648467a21 =
  BG.fromFFIType hs_bindgen_93115f1648467a21_base

-- | Parse a @double@ from a string.
--
--     This function makes fewer guarantees than the C runtime @strtod@:
--
--     * Only decimal notation is guaranteed to be supported. The handling of scientific and hexadecimal notation is unspecified.
--
--     * Whether or not INF and NAN can be parsed is unspecified.
--
--     * The precision of the result is unspecified.
--
--     [Returns]: the parsed @double@, or 0 if no number could be parsed.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_atoi', 'sDL_atof', @SDL_strtol@, 'sDL_strtoll', @SDL_strtoul@, 'sDL_strtoull'
--
--     [C declaration]: @SDL_strtod@, defined at @SDL3\/SDL_stdinc.h 3826:36@
sDL_strtod
  :: PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@str@]: the null-terminated string to read. Must not be NULL.
  -> BG.Ptr (BG.Ptr BG.CChar)
  -- ^
  --
  --           [@endp@]: if not NULL, the address of the first invalid character (i.e. the next character after the parsed number) will be written to this pointer.
  -> IO BG.CDouble
sDL_strtod = hs_bindgen_93115f1648467a21

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strcmp@
foreign import ccall unsafe "hs_bindgen_1165e1ac637a910f"
  hs_bindgen_1165e1ac637a910f_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strcmp@
hs_bindgen_1165e1ac637a910f
  :: PtrConst.PtrConst BG.CChar
  -> PtrConst.PtrConst BG.CChar
  -> IO BG.CInt
hs_bindgen_1165e1ac637a910f =
  BG.fromFFIType hs_bindgen_1165e1ac637a910f_base

-- | Compare two null-terminated UTF-8 strings.
--
--     Due to the nature of UTF-8 encoding, this will work with Unicode strings, since effectively this function just compares bytes until it hits a null-terminating character. Also due to the nature of UTF-8, this can be used with @SDL_qsort()@ to put strings in (roughly) alphabetical order.
--
--     [Returns]: less than zero if str1 is \"less than\" str2, greater than zero if str1 is \"greater than\" str2, and zero if the strings match exactly.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_strcmp@, defined at @SDL3\/SDL_stdinc.h 3846:33@
sDL_strcmp
  :: PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@str1@]: the first string to compare. NULL is not permitted!
  -> PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@str2@]: the second string to compare. NULL is not permitted!
  -> IO BG.CInt
sDL_strcmp = hs_bindgen_1165e1ac637a910f

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strncmp@
foreign import ccall unsafe "hs_bindgen_6286679cc5d88e95"
  hs_bindgen_6286679cc5d88e95_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> BG.Word64
    -> IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strncmp@
hs_bindgen_6286679cc5d88e95
  :: PtrConst.PtrConst BG.CChar
  -> PtrConst.PtrConst BG.CChar
  -> HsBindgen.Runtime.LibC.CSize
  -> IO BG.CInt
hs_bindgen_6286679cc5d88e95 =
  BG.fromFFIType hs_bindgen_6286679cc5d88e95_base

-- | Compare two UTF-8 strings up to a number of bytes.
--
--     Due to the nature of UTF-8 encoding, this will work with Unicode strings, since effectively this function just compares bytes until it hits a null-terminating character. Also due to the nature of UTF-8, this can be used with @SDL_qsort()@ to put strings in (roughly) alphabetical order.
--
--     Note that while this function is intended to be used with UTF-8, it is doing a bytewise comparison, and @maxlen@ specifies a /byte/ limit! If the limit lands in the middle of a multi-byte UTF-8 sequence, it will only compare a portion of the final character.
--
--     @maxlen@ specifies a maximum number of bytes to compare; if the strings match to this number of bytes (or both have matched to a null-terminator character before this number of bytes), they will be considered equal.
--
--     [Returns]: less than zero if str1 is \"less than\" str2, greater than zero if str1 is \"greater than\" str2, and zero if the strings match exactly.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_strncmp@, defined at @SDL3\/SDL_stdinc.h 3876:33@
sDL_strncmp
  :: PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@str1@]: the first string to compare. NULL is not permitted!
  -> PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@str2@]: the second string to compare. NULL is not permitted!
  -> HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@maxlen@]: the maximum number of /bytes/ to compare.
  -> IO BG.CInt
sDL_strncmp = hs_bindgen_6286679cc5d88e95

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strcasecmp@
foreign import ccall unsafe "hs_bindgen_592440e0cc89a66c"
  hs_bindgen_592440e0cc89a66c_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strcasecmp@
hs_bindgen_592440e0cc89a66c
  :: PtrConst.PtrConst BG.CChar
  -> PtrConst.PtrConst BG.CChar
  -> IO BG.CInt
hs_bindgen_592440e0cc89a66c =
  BG.fromFFIType hs_bindgen_592440e0cc89a66c_base

-- | Compare two null-terminated UTF-8 strings, case-insensitively.
--
--     This will work with Unicode strings, using a technique called \"case-folding\" to handle the vast majority of case-sensitive human languages regardless of system locale. It can deal with expanding values: a German Eszett character can compare against two ASCII \'s\' chars and be considered a match, for example. A notable exception: it does not handle the Turkish \'i\' character; human language is complicated!
--
--     Since this handles Unicode, it expects the string to be well-formed UTF-8 and not a null-terminated string of arbitrary bytes. Bytes that are not valid UTF-8 are treated as Unicode character U+FFFD (REPLACEMENT CHARACTER), which is to say two strings of random bits may turn out to match if they convert to the same amount of replacement characters.
--
--     [Returns]: less than zero if str1 is \"less than\" str2, greater than zero if str1 is \"greater than\" str2, and zero if the strings match exactly.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_strcasecmp@, defined at @SDL3\/SDL_stdinc.h 3904:33@
sDL_strcasecmp
  :: PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@str1@]: the first string to compare. NULL is not permitted!
  -> PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@str2@]: the second string to compare. NULL is not permitted!
  -> IO BG.CInt
sDL_strcasecmp = hs_bindgen_592440e0cc89a66c

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strncasecmp@
foreign import ccall unsafe "hs_bindgen_9a7486257c6bf068"
  hs_bindgen_9a7486257c6bf068_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> BG.Word64
    -> IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strncasecmp@
hs_bindgen_9a7486257c6bf068
  :: PtrConst.PtrConst BG.CChar
  -> PtrConst.PtrConst BG.CChar
  -> HsBindgen.Runtime.LibC.CSize
  -> IO BG.CInt
hs_bindgen_9a7486257c6bf068 =
  BG.fromFFIType hs_bindgen_9a7486257c6bf068_base

-- | Compare two UTF-8 strings, case-insensitively, up to a number of bytes.
--
--     This will work with Unicode strings, using a technique called \"case-folding\" to handle the vast majority of case-sensitive human languages regardless of system locale. It can deal with expanding values: a German Eszett character can compare against two ASCII \'s\' chars and be considered a match, for example. A notable exception: it does not handle the Turkish \'i\' character; human language is complicated!
--
--     Since this handles Unicode, it expects the string to be well-formed UTF-8 and not a null-terminated string of arbitrary bytes. Bytes that are not valid UTF-8 are treated as Unicode character U+FFFD (REPLACEMENT CHARACTER), which is to say two strings of random bits may turn out to match if they convert to the same amount of replacement characters.
--
--     Note that while this function is intended to be used with UTF-8, @maxlen@ specifies a /byte/ limit! If the limit lands in the middle of a multi-byte UTF-8 sequence, it may convert a portion of the final character to one or more Unicode character U+FFFD (REPLACEMENT CHARACTER) so as not to overflow a buffer.
--
--     @maxlen@ specifies a maximum number of bytes to compare; if the strings match to this number of bytes (or both have matched to a null-terminator character before this number of bytes), they will be considered equal.
--
--     [Returns]: less than zero if str1 is \"less than\" str2, greater than zero if str1 is \"greater than\" str2, and zero if the strings match exactly.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_strncasecmp@, defined at @SDL3\/SDL_stdinc.h 3944:33@
sDL_strncasecmp
  :: PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@str1@]: the first string to compare. NULL is not permitted!
  -> PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@str2@]: the second string to compare. NULL is not permitted!
  -> HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@maxlen@]: the maximum number of bytes to compare.
  -> IO BG.CInt
sDL_strncasecmp = hs_bindgen_9a7486257c6bf068

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strpbrk@
foreign import ccall unsafe "hs_bindgen_e53784dcceef6c88"
  hs_bindgen_e53784dcceef6c88_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_strpbrk@
hs_bindgen_e53784dcceef6c88
  :: PtrConst.PtrConst BG.CChar
  -> PtrConst.PtrConst BG.CChar
  -> IO (BG.Ptr BG.CChar)
hs_bindgen_e53784dcceef6c88 =
  BG.fromFFIType hs_bindgen_e53784dcceef6c88_base

-- | Searches a string for the first occurrence of any character contained in a breakset, and returns a pointer from the string to that character.
--
--     [Returns]: A pointer to the location, in str, of the first occurrence of a character present in the breakset, or NULL if none is found.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_strpbrk@, defined at @SDL3\/SDL_stdinc.h 3962:36@
sDL_strpbrk
  :: PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@str@]: The null-terminated string to be searched. Must not be NULL, and must not overlap with @breakset@.
  -> PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@breakset@]: A null-terminated string containing the list of characters to look for. Must not be NULL, and must not overlap with @str@.
  -> IO (BG.Ptr BG.CChar)
sDL_strpbrk = hs_bindgen_e53784dcceef6c88

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_StepUTF8@
foreign import ccall unsafe "hs_bindgen_5010b6d322eef729"
  hs_bindgen_5010b6d322eef729_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> IO BG.Word32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_StepUTF8@
hs_bindgen_5010b6d322eef729
  :: BG.Ptr (PtrConst.PtrConst BG.CChar)
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO Uint32
hs_bindgen_5010b6d322eef729 =
  BG.fromFFIType hs_bindgen_5010b6d322eef729_base

-- | Decode a UTF-8 string, one Unicode codepoint at a time.
--
--     This will return the first Unicode codepoint in the UTF-8 encoded string in @*pstr@, and then advance @*pstr@ past any consumed bytes before returning.
--
--     It will not access more than @*pslen@ bytes from the string. @*pslen@ will be adjusted, as well, subtracting the number of bytes consumed.
--
--     @pslen@ is allowed to be NULL, in which case the string /must/ be NULL-terminated, as the function will blindly read until it sees the NULL char.
--
--     if @*pslen@ is zero, it assumes the end of string is reached and returns a zero codepoint regardless of the contents of the string buffer.
--
--     If the resulting codepoint is zero (a NULL terminator), or @*pslen@ is zero, it will not advance @*pstr@ or @*pslen@ at all.
--
--     Generally this function is called in a loop until it returns zero, adjusting its parameters each iteration.
--
--     If an invalid UTF-8 sequence is encountered, this function returns SDL_INVALID_UNICODE_CODEPOINT and advances the string\/length by one byte (which is to say, a multibyte sequence might produce several SDL_INVALID_UNICODE_CODEPOINT returns before it syncs to the next valid UTF-8 sequence).
--
--     Several things can generate invalid UTF-8 sequences, including overlong encodings, the use of UTF-16 surrogate values, and truncated data. Please refer to [RFC3629](https://www.ietf.org/rfc/rfc3629.txt) for details.
--
--     [Returns]: the first Unicode codepoint in the string.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_StepUTF8@, defined at @SDL3\/SDL_stdinc.h 4022:36@
sDL_StepUTF8
  :: BG.Ptr (PtrConst.PtrConst BG.CChar)
  -- ^
  --
  --           [@pstr@]: a pointer to a UTF-8 string pointer to be read and adjusted.
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@pslen@]: a pointer to the number of bytes in the string, to be read and adjusted. NULL is allowed.
  -> IO Uint32
sDL_StepUTF8 = hs_bindgen_5010b6d322eef729

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_StepBackUTF8@
foreign import ccall unsafe "hs_bindgen_e9d45c14c965c799"
  hs_bindgen_e9d45c14c965c799_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> IO BG.Word32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_StepBackUTF8@
hs_bindgen_e9d45c14c965c799
  :: PtrConst.PtrConst BG.CChar
  -> BG.Ptr (PtrConst.PtrConst BG.CChar)
  -> IO Uint32
hs_bindgen_e9d45c14c965c799 =
  BG.fromFFIType hs_bindgen_e9d45c14c965c799_base

-- | Decode a UTF-8 string in reverse, one Unicode codepoint at a time.
--
--     This will go to the start of the previous Unicode codepoint in the string, move @*pstr@ to that location and return that codepoint.
--
--     If @*pstr@ is already at the start of the string), it will not advance @*pstr@ at all.
--
--     Generally this function is called in a loop until it returns zero, adjusting its parameter each iteration.
--
--     If an invalid UTF-8 sequence is encountered, this function returns SDL_INVALID_UNICODE_CODEPOINT.
--
--     Several things can generate invalid UTF-8 sequences, including overlong encodings, the use of UTF-16 surrogate values, and truncated data. Please refer to [RFC3629](https://www.ietf.org/rfc/rfc3629.txt) for details.
--
--     [Returns]: the previous Unicode codepoint in the string.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_StepBackUTF8@, defined at @SDL3\/SDL_stdinc.h 4053:36@
sDL_StepBackUTF8
  :: PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@start@]: a pointer to the beginning of the UTF-8 string.
  -> BG.Ptr (PtrConst.PtrConst BG.CChar)
  -- ^
  --
  --           [@pstr@]: a pointer to a UTF-8 string pointer to be read and adjusted.
  -> IO Uint32
sDL_StepBackUTF8 = hs_bindgen_e9d45c14c965c799

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_UCS4ToUTF8@
foreign import ccall unsafe "hs_bindgen_2621d8f742eba582"
  hs_bindgen_2621d8f742eba582_base
    :: BG.Word32
    -> BG.Ptr BG.Void
    -> IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_UCS4ToUTF8@
hs_bindgen_2621d8f742eba582
  :: Uint32
  -> BG.Ptr BG.CChar
  -> IO (BG.Ptr BG.CChar)
hs_bindgen_2621d8f742eba582 =
  BG.fromFFIType hs_bindgen_2621d8f742eba582_base

-- | Convert a single Unicode codepoint to UTF-8.
--
--     The buffer pointed to by @dst@ must be at least 4 bytes long, as this function may generate between 1 and 4 bytes of output.
--
--     This function returns the first byte /after/ the newly-written UTF-8 sequence, which is useful for encoding multiple codepoints in a loop, or knowing where to write a NULL-terminator character to end the string (in either case, plan to have a buffer of /more/ than 4 bytes!).
--
--     If @codepoint@ is an invalid value (outside the Unicode range, or a UTF-16 surrogate value, etc), this will use U+FFFD (REPLACEMENT CHARACTER) for the codepoint instead, and not set an error.
--
--     If @dst@ is NULL, this returns NULL immediately without writing to the pointer and without setting an error.
--
--     [Returns]: the first byte past the newly-written UTF-8 sequence.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [C declaration]: @SDL_UCS4ToUTF8@, defined at @SDL3\/SDL_stdinc.h 4082:36@
sDL_UCS4ToUTF8
  :: Uint32
  -- ^
  --
  --           [@codepoint@]: a Unicode codepoint to convert to UTF-8.
  -> BG.Ptr BG.CChar
  -- ^
  --
  --           [@dst@]: the location to write the encoded UTF-8. Must point to at least 4 bytes!
  -> IO (BG.Ptr BG.CChar)
sDL_UCS4ToUTF8 = hs_bindgen_2621d8f742eba582

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_srand@
foreign import ccall unsafe "hs_bindgen_1620e07051837ddb"
  hs_bindgen_1620e07051837ddb_base
    :: BG.Word64
    -> IO ()

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_srand@
hs_bindgen_1620e07051837ddb
  :: Uint64
  -> IO ()
hs_bindgen_1620e07051837ddb =
  BG.fromFFIType hs_bindgen_1620e07051837ddb_base

-- | Seeds the pseudo-random number generator.
--
--     Reusing the seed number will cause @SDL_rand()@ to repeat the same stream of \'random\' numbers.
--
--     [Thread safety]: This should be called on the same thread that calls @SDL_rand()@
--
--     @since 3.2.0
--
--     [See also]: 'sDL_rand', 'sDL_rand_bits', 'sDL_randf'
--
--     [C declaration]: @SDL_srand@, defined at @SDL3\/SDL_stdinc.h 4294:34@
sDL_srand
  :: Uint64
  -- ^
  --
  --           [@seed@]: the value to use as a random number seed, or 0 to use SDL_GetPerformanceCounter().
  -> IO ()
sDL_srand = hs_bindgen_1620e07051837ddb

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_rand@
foreign import ccall unsafe "hs_bindgen_bb32712cf4e3959c"
  hs_bindgen_bb32712cf4e3959c_base
    :: BG.Int32
    -> IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_rand@
hs_bindgen_bb32712cf4e3959c
  :: Sint32
  -> IO Sint32
hs_bindgen_bb32712cf4e3959c =
  BG.fromFFIType hs_bindgen_bb32712cf4e3959c_base

-- | Generate a pseudo-random number less than n for positive n
--
--     The method used is faster and of better quality than @rand() % n@. Odds are roughly 99.9% even for n = 1 million. Evenness is better for smaller n, and much worse as n gets bigger.
--
--     Example: to simulate a d6 use @SDL_rand(6) + 1@ The +1 converts 0..5 to 1..6
--
--     If you want to generate a pseudo-random number in the full range of 'Sint32', you should use: ('Sint32') @SDL_rand_bits()@
--
--     If you want reproducible output, be sure to initialize with @SDL_srand()@ first.
--
--     There are no guarantees as to the quality of the random sequence produced, and this should not be used for security (cryptography, passwords) or where money is on the line (loot-boxes, casinos). There are many random number libraries available with different characteristics and you should pick one of those to meet any serious needs.
--
--     [Returns]: a random value in the range of [0 .. n-1].
--
--     [Thread safety]: All calls should be made from a single thread
--
--     @since 3.2.0
--
--     [See also]: 'sDL_srand', 'sDL_randf'
--
--     [C declaration]: @SDL_rand@, defined at @SDL3\/SDL_stdinc.h 4328:36@
sDL_rand
  :: Sint32
  -- ^
  --
  --           [@n@]: the number of possible outcomes. n must be positive.
  -> IO Sint32
sDL_rand = hs_bindgen_bb32712cf4e3959c

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_randf@
foreign import ccall unsafe "hs_bindgen_4354197498dc7635"
  hs_bindgen_4354197498dc7635_base
    :: IO Float

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_randf@
hs_bindgen_4354197498dc7635 :: IO BG.CFloat
hs_bindgen_4354197498dc7635 =
  BG.fromFFIType hs_bindgen_4354197498dc7635_base

-- | Generate a uniform pseudo-random floating point number less than 1.0
--
--     If you want reproducible output, be sure to initialize with @SDL_srand()@ first.
--
--     There are no guarantees as to the quality of the random sequence produced, and this should not be used for security (cryptography, passwords) or where money is on the line (loot-boxes, casinos). There are many random number libraries available with different characteristics and you should pick one of those to meet any serious needs.
--
--     [Returns]: a random value in the range of [0.0, 1.0).
--
--     [Thread safety]: All calls should be made from a single thread
--
--     @since 3.2.0
--
--     [See also]: 'sDL_srand', 'sDL_rand'
--
--     [C declaration]: @SDL_randf@, defined at @SDL3\/SDL_stdinc.h 4351:35@
sDL_randf :: IO BG.CFloat
sDL_randf = hs_bindgen_4354197498dc7635

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_rand_bits@
foreign import ccall unsafe "hs_bindgen_eed752851bd8b3e2"
  hs_bindgen_eed752851bd8b3e2_base
    :: IO BG.Word32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_rand_bits@
hs_bindgen_eed752851bd8b3e2 :: IO Uint32
hs_bindgen_eed752851bd8b3e2 =
  BG.fromFFIType hs_bindgen_eed752851bd8b3e2_base

-- | Generate 32 pseudo-random bits.
--
--     You likely want to use @SDL_rand()@ to get a psuedo-random number instead.
--
--     There are no guarantees as to the quality of the random sequence produced, and this should not be used for security (cryptography, passwords) or where money is on the line (loot-boxes, casinos). There are many random number libraries available with different characteristics and you should pick one of those to meet any serious needs.
--
--     [Returns]: a random value in the range of [0-SDL_MAX_UINT32].
--
--     [Thread safety]: All calls should be made from a single thread
--
--     @since 3.2.0
--
--     [See also]: 'sDL_rand', 'sDL_randf', 'sDL_srand'
--
--     [C declaration]: @SDL_rand_bits@, defined at @SDL3\/SDL_stdinc.h 4374:36@
sDL_rand_bits :: IO Uint32
sDL_rand_bits = hs_bindgen_eed752851bd8b3e2

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_rand_r@
foreign import ccall unsafe "hs_bindgen_e31222be551ae9d1"
  hs_bindgen_e31222be551ae9d1_base
    :: BG.Ptr BG.Void
    -> BG.Int32
    -> IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_rand_r@
hs_bindgen_e31222be551ae9d1
  :: BG.Ptr Uint64
  -> Sint32
  -> IO Sint32
hs_bindgen_e31222be551ae9d1 =
  BG.fromFFIType hs_bindgen_e31222be551ae9d1_base

-- | Generate a pseudo-random number less than n for positive n
--
--     The method used is faster and of better quality than @rand() % n@. Odds are roughly 99.9% even for n = 1 million. Evenness is better for smaller n, and much worse as n gets bigger.
--
--     Example: to simulate a d6 use @SDL_rand_r(state, 6) + 1@ The +1 converts 0..5 to 1..6
--
--     If you want to generate a pseudo-random number in the full range of 'Sint32', you should use: ('Sint32')SDL_rand_bits_r(state)
--
--     There are no guarantees as to the quality of the random sequence produced, and this should not be used for security (cryptography, passwords) or where money is on the line (loot-boxes, casinos). There are many random number libraries available with different characteristics and you should pick one of those to meet any serious needs.
--
--     [Returns]: a random value in the range of [0 .. n-1].
--
--     [Thread safety]: This function is thread-safe, as long as the state pointer isn\'t shared between threads.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_rand', 'sDL_rand_bits_r', 'sDL_randf_r'
--
--     [C declaration]: @SDL_rand_r@, defined at @SDL3\/SDL_stdinc.h 4409:36@
sDL_rand_r
  :: BG.Ptr Uint64
  -- ^
  --
  --           [@state@]: a pointer to the current random number state, this may not be NULL.
  -> Sint32
  -- ^
  --
  --           [@n@]: the number of possible outcomes. n must be positive.
  -> IO Sint32
sDL_rand_r = hs_bindgen_e31222be551ae9d1

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_randf_r@
foreign import ccall unsafe "hs_bindgen_b728fa521e1f33ba"
  hs_bindgen_b728fa521e1f33ba_base
    :: BG.Ptr BG.Void
    -> IO Float

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_randf_r@
hs_bindgen_b728fa521e1f33ba
  :: BG.Ptr Uint64
  -> IO BG.CFloat
hs_bindgen_b728fa521e1f33ba =
  BG.fromFFIType hs_bindgen_b728fa521e1f33ba_base

-- | Generate a uniform pseudo-random floating point number less than 1.0
--
--     If you want reproducible output, be sure to initialize with @SDL_srand()@ first.
--
--     There are no guarantees as to the quality of the random sequence produced, and this should not be used for security (cryptography, passwords) or where money is on the line (loot-boxes, casinos). There are many random number libraries available with different characteristics and you should pick one of those to meet any serious needs.
--
--     [Returns]: a random value in the range of [0.0, 1.0).
--
--     [Thread safety]: This function is thread-safe, as long as the state pointer isn\'t shared between threads.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_rand_bits_r', 'sDL_rand_r', 'sDL_randf'
--
--     [C declaration]: @SDL_randf_r@, defined at @SDL3\/SDL_stdinc.h 4436:35@
sDL_randf_r
  :: BG.Ptr Uint64
  -- ^
  --
  --           [@state@]: a pointer to the current random number state, this may not be NULL.
  -> IO BG.CFloat
sDL_randf_r = hs_bindgen_b728fa521e1f33ba

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_rand_bits_r@
foreign import ccall unsafe "hs_bindgen_1779b3d1ac6c6ca0"
  hs_bindgen_1779b3d1ac6c6ca0_base
    :: BG.Ptr BG.Void
    -> IO BG.Word32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_rand_bits_r@
hs_bindgen_1779b3d1ac6c6ca0
  :: BG.Ptr Uint64
  -> IO Uint32
hs_bindgen_1779b3d1ac6c6ca0 =
  BG.fromFFIType hs_bindgen_1779b3d1ac6c6ca0_base

-- | Generate 32 pseudo-random bits.
--
--     You likely want to use @SDL_rand_r()@ to get a psuedo-random number instead.
--
--     There are no guarantees as to the quality of the random sequence produced, and this should not be used for security (cryptography, passwords) or where money is on the line (loot-boxes, casinos). There are many random number libraries available with different characteristics and you should pick one of those to meet any serious needs.
--
--     [Returns]: a random value in the range of [0-SDL_MAX_UINT32].
--
--     [Thread safety]: This function is thread-safe, as long as the state pointer isn\'t shared between threads.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_rand_r', 'sDL_randf_r'
--
--     [C declaration]: @SDL_rand_bits_r@, defined at @SDL3\/SDL_stdinc.h 4461:36@
sDL_rand_bits_r
  :: BG.Ptr Uint64
  -- ^
  --
  --           [@state@]: a pointer to the current random number state, this may not be NULL.
  -> IO Uint32
sDL_rand_bits_r = hs_bindgen_1779b3d1ac6c6ca0

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_acos@
foreign import ccall unsafe "hs_bindgen_77d2b09de2f907bb"
  hs_bindgen_77d2b09de2f907bb_base
    :: Double
    -> IO Double

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_acos@
hs_bindgen_77d2b09de2f907bb
  :: BG.CDouble
  -> IO BG.CDouble
hs_bindgen_77d2b09de2f907bb =
  BG.fromFFIType hs_bindgen_77d2b09de2f907bb_base

-- | Compute the arc cosine of @x@.
--
--     The definition of @y = acos(x)@ is @x = cos(y)@.
--
--     Domain: @-1 \<= x \<= 1@
--
--     Range: @0 \<= y \<= Pi@
--
--     This function operates on double-precision floating point values, use SDL_acosf for single-precision floats.
--
--     This function may use a different approximation across different versions, platforms and configurations. i.e, it can return a different value given the same input on different machines or operating systems, or if SDL is updated.
--
--     [Returns]: arc cosine of @x@, in radians.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_acosf', 'sDL_asin', 'sDL_cos'
--
--     [C declaration]: @SDL_acos@, defined at @SDL3\/SDL_stdinc.h 4515:36@
sDL_acos
  :: BG.CDouble
  -- ^
  --
  --           [@x@]: floating point value.
  -> IO BG.CDouble
sDL_acos = hs_bindgen_77d2b09de2f907bb

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_acosf@
foreign import ccall unsafe "hs_bindgen_a7dfe79fdc884d97"
  hs_bindgen_a7dfe79fdc884d97_base
    :: Float
    -> IO Float

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_acosf@
hs_bindgen_a7dfe79fdc884d97
  :: BG.CFloat
  -> IO BG.CFloat
hs_bindgen_a7dfe79fdc884d97 =
  BG.fromFFIType hs_bindgen_a7dfe79fdc884d97_base

-- | Compute the arc cosine of @x@.
--
--     The definition of @y = acos(x)@ is @x = cos(y)@.
--
--     Domain: @-1 \<= x \<= 1@
--
--     Range: @0 \<= y \<= Pi@
--
--     This function operates on single-precision floating point values, use SDL_acos for double-precision floats.
--
--     This function may use a different approximation across different versions, platforms and configurations. i.e, it can return a different value given the same input on different machines or operating systems, or if SDL is updated.
--
--     [Returns]: arc cosine of @x@, in radians.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_acos', 'sDL_asinf', 'sDL_cosf'
--
--     [C declaration]: @SDL_acosf@, defined at @SDL3\/SDL_stdinc.h 4545:35@
sDL_acosf
  :: BG.CFloat
  -- ^
  --
  --           [@x@]: floating point value.
  -> IO BG.CFloat
sDL_acosf = hs_bindgen_a7dfe79fdc884d97

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_asin@
foreign import ccall unsafe "hs_bindgen_c1c2c5b2424934f7"
  hs_bindgen_c1c2c5b2424934f7_base
    :: Double
    -> IO Double

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_asin@
hs_bindgen_c1c2c5b2424934f7
  :: BG.CDouble
  -> IO BG.CDouble
hs_bindgen_c1c2c5b2424934f7 =
  BG.fromFFIType hs_bindgen_c1c2c5b2424934f7_base

-- | Compute the arc sine of @x@.
--
--     The definition of @y = asin(x)@ is @x = sin(y)@.
--
--     Domain: @-1 \<= x \<= 1@
--
--     Range: @-Pi\/2 \<= y \<= Pi\/2@
--
--     This function operates on double-precision floating point values, use SDL_asinf for single-precision floats.
--
--     This function may use a different approximation across different versions, platforms and configurations. i.e, it can return a different value given the same input on different machines or operating systems, or if SDL is updated.
--
--     [Returns]: arc sine of @x@, in radians.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_asinf', 'sDL_acos', 'sDL_sin'
--
--     [C declaration]: @SDL_asin@, defined at @SDL3\/SDL_stdinc.h 4575:36@
sDL_asin
  :: BG.CDouble
  -- ^
  --
  --           [@x@]: floating point value.
  -> IO BG.CDouble
sDL_asin = hs_bindgen_c1c2c5b2424934f7

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_asinf@
foreign import ccall unsafe "hs_bindgen_c0162f35a592c4d6"
  hs_bindgen_c0162f35a592c4d6_base
    :: Float
    -> IO Float

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_asinf@
hs_bindgen_c0162f35a592c4d6
  :: BG.CFloat
  -> IO BG.CFloat
hs_bindgen_c0162f35a592c4d6 =
  BG.fromFFIType hs_bindgen_c0162f35a592c4d6_base

-- | Compute the arc sine of @x@.
--
--     The definition of @y = asin(x)@ is @x = sin(y)@.
--
--     Domain: @-1 \<= x \<= 1@
--
--     Range: @-Pi\/2 \<= y \<= Pi\/2@
--
--     This function operates on single-precision floating point values, use SDL_asin for double-precision floats.
--
--     This function may use a different approximation across different versions, platforms and configurations. i.e, it can return a different value given the same input on different machines or operating systems, or if SDL is updated.
--
--     [Returns]: arc sine of @x@, in radians.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_asin', 'sDL_acosf', 'sDL_sinf'
--
--     [C declaration]: @SDL_asinf@, defined at @SDL3\/SDL_stdinc.h 4605:35@
sDL_asinf
  :: BG.CFloat
  -- ^
  --
  --           [@x@]: floating point value.
  -> IO BG.CFloat
sDL_asinf = hs_bindgen_c0162f35a592c4d6

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_atan@
foreign import ccall unsafe "hs_bindgen_62e948cecf885b31"
  hs_bindgen_62e948cecf885b31_base
    :: Double
    -> IO Double

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_atan@
hs_bindgen_62e948cecf885b31
  :: BG.CDouble
  -> IO BG.CDouble
hs_bindgen_62e948cecf885b31 =
  BG.fromFFIType hs_bindgen_62e948cecf885b31_base

-- | Compute the arc tangent of @x@.
--
--     The definition of @y = atan(x)@ is @x = tan(y)@.
--
--     Domain: @-INF \<= x \<= INF@
--
--     Range: @-Pi\/2 \<= y \<= Pi\/2@
--
--     This function operates on double-precision floating point values, use SDL_atanf for single-precision floats.
--
--     To calculate the arc tangent of y \/ x, use SDL_atan2.
--
--     This function may use a different approximation across different versions, platforms and configurations. i.e, it can return a different value given the same input on different machines or operating systems, or if SDL is updated.
--
--     [Returns]: arc tangent of of @x@ in radians, or 0 if @x = 0@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_atanf', 'sDL_atan2', 'sDL_tan'
--
--     [C declaration]: @SDL_atan@, defined at @SDL3\/SDL_stdinc.h 4637:36@
sDL_atan
  :: BG.CDouble
  -- ^
  --
  --           [@x@]: floating point value.
  -> IO BG.CDouble
sDL_atan = hs_bindgen_62e948cecf885b31

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_atanf@
foreign import ccall unsafe "hs_bindgen_429e4b987b465ff9"
  hs_bindgen_429e4b987b465ff9_base
    :: Float
    -> IO Float

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_atanf@
hs_bindgen_429e4b987b465ff9
  :: BG.CFloat
  -> IO BG.CFloat
hs_bindgen_429e4b987b465ff9 =
  BG.fromFFIType hs_bindgen_429e4b987b465ff9_base

-- | Compute the arc tangent of @x@.
--
--     The definition of @y = atan(x)@ is @x = tan(y)@.
--
--     Domain: @-INF \<= x \<= INF@
--
--     Range: @-Pi\/2 \<= y \<= Pi\/2@
--
--     This function operates on single-precision floating point values, use SDL_atan for dboule-precision floats.
--
--     To calculate the arc tangent of y \/ x, use SDL_atan2f.
--
--     This function may use a different approximation across different versions, platforms and configurations. i.e, it can return a different value given the same input on different machines or operating systems, or if SDL is updated.
--
--     [Returns]: arc tangent of of @x@ in radians, or 0 if @x = 0@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_atan', 'sDL_atan2f', 'sDL_tanf'
--
--     [C declaration]: @SDL_atanf@, defined at @SDL3\/SDL_stdinc.h 4669:35@
sDL_atanf
  :: BG.CFloat
  -- ^
  --
  --           [@x@]: floating point value.
  -> IO BG.CFloat
sDL_atanf = hs_bindgen_429e4b987b465ff9

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_atan2@
foreign import ccall unsafe "hs_bindgen_dd25876f2db3e27f"
  hs_bindgen_dd25876f2db3e27f_base
    :: Double
    -> Double
    -> IO Double

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_atan2@
hs_bindgen_dd25876f2db3e27f
  :: BG.CDouble
  -> BG.CDouble
  -> IO BG.CDouble
hs_bindgen_dd25876f2db3e27f =
  BG.fromFFIType hs_bindgen_dd25876f2db3e27f_base

-- | Compute the arc tangent of @y \/ x@, using the signs of x and y to adjust the result\'s quadrant.
--
--     The definition of @z = atan2(x, y)@ is @y = x tan(z)@, where the quadrant of z is determined based on the signs of x and y.
--
--     Domain: @-INF \<= x \<= INF@, @-INF \<= y \<= INF@
--
--     Range: @-Pi \<= y \<= Pi@
--
--     This function operates on double-precision floating point values, use SDL_atan2f for single-precision floats.
--
--     To calculate the arc tangent of a single value, use SDL_atan.
--
--     This function may use a different approximation across different versions, platforms and configurations. i.e, it can return a different value given the same input on different machines or operating systems, or if SDL is updated.
--
--     [Returns]: arc tangent of of @y \/ x@ in radians, or, if @x = 0@, either @-Pi\/2@, @0@, or @Pi\/2@, depending on the value of @y@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_atan2f', 'sDL_atan', 'sDL_tan'
--
--     [C declaration]: @SDL_atan2@, defined at @SDL3\/SDL_stdinc.h 4705:36@
sDL_atan2
  :: BG.CDouble
  -- ^
  --
  --           [@y@]: floating point value of the numerator (y coordinate).
  -> BG.CDouble
  -- ^
  --
  --           [@x@]: floating point value of the denominator (x coordinate).
  -> IO BG.CDouble
sDL_atan2 = hs_bindgen_dd25876f2db3e27f

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_atan2f@
foreign import ccall unsafe "hs_bindgen_8131501831457d98"
  hs_bindgen_8131501831457d98_base
    :: Float
    -> Float
    -> IO Float

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_atan2f@
hs_bindgen_8131501831457d98
  :: BG.CFloat
  -> BG.CFloat
  -> IO BG.CFloat
hs_bindgen_8131501831457d98 =
  BG.fromFFIType hs_bindgen_8131501831457d98_base

-- | Compute the arc tangent of @y \/ x@, using the signs of x and y to adjust the result\'s quadrant.
--
--     The definition of @z = atan2(x, y)@ is @y = x tan(z)@, where the quadrant of z is determined based on the signs of x and y.
--
--     Domain: @-INF \<= x \<= INF@, @-INF \<= y \<= INF@
--
--     Range: @-Pi \<= y \<= Pi@
--
--     This function operates on single-precision floating point values, use SDL_atan2 for double-precision floats.
--
--     To calculate the arc tangent of a single value, use SDL_atanf.
--
--     This function may use a different approximation across different versions, platforms and configurations. i.e, it can return a different value given the same input on different machines or operating systems, or if SDL is updated.
--
--     [Returns]: arc tangent of of @y \/ x@ in radians, or, if @x = 0@, either @-Pi\/2@, @0@, or @Pi\/2@, depending on the value of @y@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_atan2', 'sDL_atan', 'sDL_tan'
--
--     [C declaration]: @SDL_atan2f@, defined at @SDL3\/SDL_stdinc.h 4741:35@
sDL_atan2f
  :: BG.CFloat
  -- ^
  --
  --           [@y@]: floating point value of the numerator (y coordinate).
  -> BG.CFloat
  -- ^
  --
  --           [@x@]: floating point value of the denominator (x coordinate).
  -> IO BG.CFloat
sDL_atan2f = hs_bindgen_8131501831457d98

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_ceil@
foreign import ccall unsafe "hs_bindgen_6654a059aee78106"
  hs_bindgen_6654a059aee78106_base
    :: Double
    -> IO Double

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_ceil@
hs_bindgen_6654a059aee78106
  :: BG.CDouble
  -> IO BG.CDouble
hs_bindgen_6654a059aee78106 =
  BG.fromFFIType hs_bindgen_6654a059aee78106_base

-- | Compute the ceiling of @x@.
--
--     The ceiling of @x@ is the smallest integer @y@ such that @y >= x@, i.e @x@ rounded up to the nearest integer.
--
--     Domain: @-INF \<= x \<= INF@
--
--     Range: @-INF \<= y \<= INF@, y integer
--
--     This function operates on double-precision floating point values, use SDL_ceilf for single-precision floats.
--
--     [Returns]: the ceiling of @x@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_ceilf', 'sDL_floor', 'sDL_trunc', 'sDL_round', @SDL_lround@
--
--     [C declaration]: @SDL_ceil@, defined at @SDL3\/SDL_stdinc.h 4769:36@
sDL_ceil
  :: BG.CDouble
  -- ^
  --
  --           [@x@]: floating point value.
  -> IO BG.CDouble
sDL_ceil = hs_bindgen_6654a059aee78106

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_ceilf@
foreign import ccall unsafe "hs_bindgen_ad644f683da406f9"
  hs_bindgen_ad644f683da406f9_base
    :: Float
    -> IO Float

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_ceilf@
hs_bindgen_ad644f683da406f9
  :: BG.CFloat
  -> IO BG.CFloat
hs_bindgen_ad644f683da406f9 =
  BG.fromFFIType hs_bindgen_ad644f683da406f9_base

-- | Compute the ceiling of @x@.
--
--     The ceiling of @x@ is the smallest integer @y@ such that @y >= x@, i.e @x@ rounded up to the nearest integer.
--
--     Domain: @-INF \<= x \<= INF@
--
--     Range: @-INF \<= y \<= INF@, y integer
--
--     This function operates on single-precision floating point values, use SDL_ceil for double-precision floats.
--
--     [Returns]: the ceiling of @x@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_ceil', 'sDL_floorf', 'sDL_truncf', 'sDL_roundf', @SDL_lroundf@
--
--     [C declaration]: @SDL_ceilf@, defined at @SDL3\/SDL_stdinc.h 4797:35@
sDL_ceilf
  :: BG.CFloat
  -- ^
  --
  --           [@x@]: floating point value.
  -> IO BG.CFloat
sDL_ceilf = hs_bindgen_ad644f683da406f9

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_copysign@
foreign import ccall unsafe "hs_bindgen_8091ddede7c04cbc"
  hs_bindgen_8091ddede7c04cbc_base
    :: Double
    -> Double
    -> IO Double

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_copysign@
hs_bindgen_8091ddede7c04cbc
  :: BG.CDouble
  -> BG.CDouble
  -> IO BG.CDouble
hs_bindgen_8091ddede7c04cbc =
  BG.fromFFIType hs_bindgen_8091ddede7c04cbc_base

-- | Copy the sign of one floating-point value to another.
--
--     The definition of copysign is that @copysign(x, y) = abs(x) * sign(y)@.
--
--     Domain: @-INF \<= x \<= INF@, @-INF \<= y \<= f@
--
--     Range: @-INF \<= z \<= INF@
--
--     This function operates on double-precision floating point values, use SDL_copysignf for single-precision floats.
--
--     [Returns]: the floating point value with the sign of y and the magnitude of x.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_copysignf', 'sDL_fabs'
--
--     [C declaration]: @SDL_copysign@, defined at @SDL3\/SDL_stdinc.h 4823:36@
sDL_copysign
  :: BG.CDouble
  -- ^
  --
  --           [@x@]: floating point value to use as the magnitude.
  -> BG.CDouble
  -- ^
  --
  --           [@y@]: floating point value to use as the sign.
  -> IO BG.CDouble
sDL_copysign = hs_bindgen_8091ddede7c04cbc

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_copysignf@
foreign import ccall unsafe "hs_bindgen_b3f4ceb6b2fe20ee"
  hs_bindgen_b3f4ceb6b2fe20ee_base
    :: Float
    -> Float
    -> IO Float

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_copysignf@
hs_bindgen_b3f4ceb6b2fe20ee
  :: BG.CFloat
  -> BG.CFloat
  -> IO BG.CFloat
hs_bindgen_b3f4ceb6b2fe20ee =
  BG.fromFFIType hs_bindgen_b3f4ceb6b2fe20ee_base

-- | Copy the sign of one floating-point value to another.
--
--     The definition of copysign is that @copysign(x, y) = abs(x) * sign(y)@.
--
--     Domain: @-INF \<= x \<= INF@, @-INF \<= y \<= f@
--
--     Range: @-INF \<= z \<= INF@
--
--     This function operates on single-precision floating point values, use SDL_copysign for double-precision floats.
--
--     [Returns]: the floating point value with the sign of y and the magnitude of x.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_copysign', 'sDL_fabsf'
--
--     [C declaration]: @SDL_copysignf@, defined at @SDL3\/SDL_stdinc.h 4849:35@
sDL_copysignf
  :: BG.CFloat
  -- ^
  --
  --           [@x@]: floating point value to use as the magnitude.
  -> BG.CFloat
  -- ^
  --
  --           [@y@]: floating point value to use as the sign.
  -> IO BG.CFloat
sDL_copysignf = hs_bindgen_b3f4ceb6b2fe20ee

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_cos@
foreign import ccall unsafe "hs_bindgen_a3469aec056551e2"
  hs_bindgen_a3469aec056551e2_base
    :: Double
    -> IO Double

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_cos@
hs_bindgen_a3469aec056551e2
  :: BG.CDouble
  -> IO BG.CDouble
hs_bindgen_a3469aec056551e2 =
  BG.fromFFIType hs_bindgen_a3469aec056551e2_base

-- | Compute the cosine of @x@.
--
--     Domain: @-INF \<= x \<= INF@
--
--     Range: @-1 \<= y \<= 1@
--
--     This function operates on double-precision floating point values, use SDL_cosf for single-precision floats.
--
--     This function may use a different approximation across different versions, platforms and configurations. i.e, it can return a different value given the same input on different machines or operating systems, or if SDL is updated.
--
--     [Returns]: cosine of @x@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_cosf', 'sDL_acos', 'sDL_sin'
--
--     [C declaration]: @SDL_cos@, defined at @SDL3\/SDL_stdinc.h 4877:36@
sDL_cos
  :: BG.CDouble
  -- ^
  --
  --           [@x@]: floating point value, in radians.
  -> IO BG.CDouble
sDL_cos = hs_bindgen_a3469aec056551e2

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_cosf@
foreign import ccall unsafe "hs_bindgen_905fd229e6d8b35e"
  hs_bindgen_905fd229e6d8b35e_base
    :: Float
    -> IO Float

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_cosf@
hs_bindgen_905fd229e6d8b35e
  :: BG.CFloat
  -> IO BG.CFloat
hs_bindgen_905fd229e6d8b35e =
  BG.fromFFIType hs_bindgen_905fd229e6d8b35e_base

-- | Compute the cosine of @x@.
--
--     Domain: @-INF \<= x \<= INF@
--
--     Range: @-1 \<= y \<= 1@
--
--     This function operates on single-precision floating point values, use SDL_cos for double-precision floats.
--
--     This function may use a different approximation across different versions, platforms and configurations. i.e, it can return a different value given the same input on different machines or operating systems, or if SDL is updated.
--
--     [Returns]: cosine of @x@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_cos', 'sDL_acosf', 'sDL_sinf'
--
--     [C declaration]: @SDL_cosf@, defined at @SDL3\/SDL_stdinc.h 4905:35@
sDL_cosf
  :: BG.CFloat
  -- ^
  --
  --           [@x@]: floating point value, in radians.
  -> IO BG.CFloat
sDL_cosf = hs_bindgen_905fd229e6d8b35e

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_exp@
foreign import ccall unsafe "hs_bindgen_1512e406037d12ac"
  hs_bindgen_1512e406037d12ac_base
    :: Double
    -> IO Double

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_exp@
hs_bindgen_1512e406037d12ac
  :: BG.CDouble
  -> IO BG.CDouble
hs_bindgen_1512e406037d12ac =
  BG.fromFFIType hs_bindgen_1512e406037d12ac_base

-- | Compute the exponential of @x@.
--
--     The definition of @y = exp(x)@ is @y = e^x@, where @e@ is the base of the natural logarithm. The inverse is the natural logarithm, SDL_log.
--
--     Domain: @-INF \<= x \<= INF@
--
--     Range: @0 \<= y \<= INF@
--
--     The output will overflow if @exp(x)@ is too large to be represented.
--
--     This function operates on double-precision floating point values, use SDL_expf for single-precision floats.
--
--     This function may use a different approximation across different versions, platforms and configurations. i.e, it can return a different value given the same input on different machines or operating systems, or if SDL is updated.
--
--     [Returns]: value of @e^x@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_expf', 'sDL_log'
--
--     [C declaration]: @SDL_exp@, defined at @SDL3\/SDL_stdinc.h 4937:36@
sDL_exp
  :: BG.CDouble
  -- ^
  --
  --           [@x@]: floating point value.
  -> IO BG.CDouble
sDL_exp = hs_bindgen_1512e406037d12ac

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_expf@
foreign import ccall unsafe "hs_bindgen_d3dd134efe3abfff"
  hs_bindgen_d3dd134efe3abfff_base
    :: Float
    -> IO Float

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_expf@
hs_bindgen_d3dd134efe3abfff
  :: BG.CFloat
  -> IO BG.CFloat
hs_bindgen_d3dd134efe3abfff =
  BG.fromFFIType hs_bindgen_d3dd134efe3abfff_base

-- | Compute the exponential of @x@.
--
--     The definition of @y = exp(x)@ is @y = e^x@, where @e@ is the base of the natural logarithm. The inverse is the natural logarithm, SDL_logf.
--
--     Domain: @-INF \<= x \<= INF@
--
--     Range: @0 \<= y \<= INF@
--
--     The output will overflow if @exp(x)@ is too large to be represented.
--
--     This function operates on single-precision floating point values, use SDL_exp for double-precision floats.
--
--     This function may use a different approximation across different versions, platforms and configurations. i.e, it can return a different value given the same input on different machines or operating systems, or if SDL is updated.
--
--     [Returns]: value of @e^x@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_exp', 'sDL_logf'
--
--     [C declaration]: @SDL_expf@, defined at @SDL3\/SDL_stdinc.h 4969:35@
sDL_expf
  :: BG.CFloat
  -- ^
  --
  --           [@x@]: floating point value.
  -> IO BG.CFloat
sDL_expf = hs_bindgen_d3dd134efe3abfff

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_fabs@
foreign import ccall unsafe "hs_bindgen_52ba4ac175596d0a"
  hs_bindgen_52ba4ac175596d0a_base
    :: Double
    -> IO Double

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_fabs@
hs_bindgen_52ba4ac175596d0a
  :: BG.CDouble
  -> IO BG.CDouble
hs_bindgen_52ba4ac175596d0a =
  BG.fromFFIType hs_bindgen_52ba4ac175596d0a_base

-- | Compute the absolute value of @x@
--
--     Domain: @-INF \<= x \<= INF@
--
--     Range: @0 \<= y \<= INF@
--
--     This function operates on double-precision floating point values, use SDL_fabsf for single-precision floats.
--
--     [Returns]: the absolute value of @x@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_fabsf'
--
--     [C declaration]: @SDL_fabs@, defined at @SDL3\/SDL_stdinc.h 4990:36@
sDL_fabs
  :: BG.CDouble
  -- ^
  --
  --           [@x@]: floating point value to use as the magnitude.
  -> IO BG.CDouble
sDL_fabs = hs_bindgen_52ba4ac175596d0a

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_fabsf@
foreign import ccall unsafe "hs_bindgen_184b19c145435e41"
  hs_bindgen_184b19c145435e41_base
    :: Float
    -> IO Float

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_fabsf@
hs_bindgen_184b19c145435e41
  :: BG.CFloat
  -> IO BG.CFloat
hs_bindgen_184b19c145435e41 =
  BG.fromFFIType hs_bindgen_184b19c145435e41_base

-- | Compute the absolute value of @x@
--
--     Domain: @-INF \<= x \<= INF@
--
--     Range: @0 \<= y \<= INF@
--
--     This function operates on single-precision floating point values, use SDL_fabs for double-precision floats.
--
--     [Returns]: the absolute value of @x@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_fabs'
--
--     [C declaration]: @SDL_fabsf@, defined at @SDL3\/SDL_stdinc.h 5011:35@
sDL_fabsf
  :: BG.CFloat
  -- ^
  --
  --           [@x@]: floating point value to use as the magnitude.
  -> IO BG.CFloat
sDL_fabsf = hs_bindgen_184b19c145435e41

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_floor@
foreign import ccall unsafe "hs_bindgen_f490c8eee1698a66"
  hs_bindgen_f490c8eee1698a66_base
    :: Double
    -> IO Double

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_floor@
hs_bindgen_f490c8eee1698a66
  :: BG.CDouble
  -> IO BG.CDouble
hs_bindgen_f490c8eee1698a66 =
  BG.fromFFIType hs_bindgen_f490c8eee1698a66_base

-- | Compute the floor of @x@.
--
--     The floor of @x@ is the largest integer @y@ such that @y \<= x@, i.e @x@ rounded down to the nearest integer.
--
--     Domain: @-INF \<= x \<= INF@
--
--     Range: @-INF \<= y \<= INF@, y integer
--
--     This function operates on double-precision floating point values, use SDL_floorf for single-precision floats.
--
--     [Returns]: the floor of @x@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_floorf', 'sDL_ceil', 'sDL_trunc', 'sDL_round', @SDL_lround@
--
--     [C declaration]: @SDL_floor@, defined at @SDL3\/SDL_stdinc.h 5039:36@
sDL_floor
  :: BG.CDouble
  -- ^
  --
  --           [@x@]: floating point value.
  -> IO BG.CDouble
sDL_floor = hs_bindgen_f490c8eee1698a66

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_floorf@
foreign import ccall unsafe "hs_bindgen_2f0b4572dde60cf4"
  hs_bindgen_2f0b4572dde60cf4_base
    :: Float
    -> IO Float

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_floorf@
hs_bindgen_2f0b4572dde60cf4
  :: BG.CFloat
  -> IO BG.CFloat
hs_bindgen_2f0b4572dde60cf4 =
  BG.fromFFIType hs_bindgen_2f0b4572dde60cf4_base

-- | Compute the floor of @x@.
--
--     The floor of @x@ is the largest integer @y@ such that @y \<= x@, i.e @x@ rounded down to the nearest integer.
--
--     Domain: @-INF \<= x \<= INF@
--
--     Range: @-INF \<= y \<= INF@, y integer
--
--     This function operates on single-precision floating point values, use SDL_floor for double-precision floats.
--
--     [Returns]: the floor of @x@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_floor', 'sDL_ceilf', 'sDL_truncf', 'sDL_roundf', @SDL_lroundf@
--
--     [C declaration]: @SDL_floorf@, defined at @SDL3\/SDL_stdinc.h 5067:35@
sDL_floorf
  :: BG.CFloat
  -- ^
  --
  --           [@x@]: floating point value.
  -> IO BG.CFloat
sDL_floorf = hs_bindgen_2f0b4572dde60cf4

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_trunc@
foreign import ccall unsafe "hs_bindgen_0babb20dade49b7a"
  hs_bindgen_0babb20dade49b7a_base
    :: Double
    -> IO Double

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_trunc@
hs_bindgen_0babb20dade49b7a
  :: BG.CDouble
  -> IO BG.CDouble
hs_bindgen_0babb20dade49b7a =
  BG.fromFFIType hs_bindgen_0babb20dade49b7a_base

-- | Truncate @x@ to an integer.
--
--     Rounds @x@ to the next closest integer to 0. This is equivalent to removing the fractional part of @x@, leaving only the integer part.
--
--     Domain: @-INF \<= x \<= INF@
--
--     Range: @-INF \<= y \<= INF@, y integer
--
--     This function operates on double-precision floating point values, use SDL_truncf for single-precision floats.
--
--     [Returns]: @x@ truncated to an integer.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_truncf', 'sDL_fmod', 'sDL_ceil', 'sDL_floor', 'sDL_round', @SDL_lround@
--
--     [C declaration]: @SDL_trunc@, defined at @SDL3\/SDL_stdinc.h 5096:36@
sDL_trunc
  :: BG.CDouble
  -- ^
  --
  --           [@x@]: floating point value.
  -> IO BG.CDouble
sDL_trunc = hs_bindgen_0babb20dade49b7a

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_truncf@
foreign import ccall unsafe "hs_bindgen_90bf99d352a2662e"
  hs_bindgen_90bf99d352a2662e_base
    :: Float
    -> IO Float

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_truncf@
hs_bindgen_90bf99d352a2662e
  :: BG.CFloat
  -> IO BG.CFloat
hs_bindgen_90bf99d352a2662e =
  BG.fromFFIType hs_bindgen_90bf99d352a2662e_base

-- | Truncate @x@ to an integer.
--
--     Rounds @x@ to the next closest integer to 0. This is equivalent to removing the fractional part of @x@, leaving only the integer part.
--
--     Domain: @-INF \<= x \<= INF@
--
--     Range: @-INF \<= y \<= INF@, y integer
--
--     This function operates on single-precision floating point values, use SDL_trunc for double-precision floats.
--
--     [Returns]: @x@ truncated to an integer.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_trunc', 'sDL_fmodf', 'sDL_ceilf', 'sDL_floorf', 'sDL_roundf', @SDL_lroundf@
--
--     [C declaration]: @SDL_truncf@, defined at @SDL3\/SDL_stdinc.h 5125:35@
sDL_truncf
  :: BG.CFloat
  -- ^
  --
  --           [@x@]: floating point value.
  -> IO BG.CFloat
sDL_truncf = hs_bindgen_90bf99d352a2662e

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_fmod@
foreign import ccall unsafe "hs_bindgen_01e3fd06ce04c71f"
  hs_bindgen_01e3fd06ce04c71f_base
    :: Double
    -> Double
    -> IO Double

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_fmod@
hs_bindgen_01e3fd06ce04c71f
  :: BG.CDouble
  -> BG.CDouble
  -> IO BG.CDouble
hs_bindgen_01e3fd06ce04c71f =
  BG.fromFFIType hs_bindgen_01e3fd06ce04c71f_base

-- | Return the floating-point remainder of @x \/ y@
--
--     Divides @x@ by @y@, and returns the remainder.
--
--     Domain: @-INF \<= x \<= INF@, @-INF \<= y \<= INF@, @y != 0@
--
--     Range: @-y \<= z \<= y@
--
--     This function operates on double-precision floating point values, use SDL_fmodf for single-precision floats.
--
--     [Returns]: the remainder of @x \/ y@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_fmodf', 'sDL_modf', 'sDL_trunc', 'sDL_ceil', 'sDL_floor', 'sDL_round', @SDL_lround@
--
--     [C declaration]: @SDL_fmod@, defined at @SDL3\/SDL_stdinc.h 5155:36@
sDL_fmod
  :: BG.CDouble
  -- ^
  --
  --           [@x@]: the numerator.
  -> BG.CDouble
  -- ^
  --
  --           [@y@]: the denominator. Must not be 0.
  -> IO BG.CDouble
sDL_fmod = hs_bindgen_01e3fd06ce04c71f

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_fmodf@
foreign import ccall unsafe "hs_bindgen_d31c39dbd23d1312"
  hs_bindgen_d31c39dbd23d1312_base
    :: Float
    -> Float
    -> IO Float

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_fmodf@
hs_bindgen_d31c39dbd23d1312
  :: BG.CFloat
  -> BG.CFloat
  -> IO BG.CFloat
hs_bindgen_d31c39dbd23d1312 =
  BG.fromFFIType hs_bindgen_d31c39dbd23d1312_base

-- | Return the floating-point remainder of @x \/ y@
--
--     Divides @x@ by @y@, and returns the remainder.
--
--     Domain: @-INF \<= x \<= INF@, @-INF \<= y \<= INF@, @y != 0@
--
--     Range: @-y \<= z \<= y@
--
--     This function operates on single-precision floating point values, use SDL_fmod for double-precision floats.
--
--     [Returns]: the remainder of @x \/ y@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_fmod', 'sDL_truncf', 'sDL_modff', 'sDL_ceilf', 'sDL_floorf', 'sDL_roundf', @SDL_lroundf@
--
--     [C declaration]: @SDL_fmodf@, defined at @SDL3\/SDL_stdinc.h 5185:35@
sDL_fmodf
  :: BG.CFloat
  -- ^
  --
  --           [@x@]: the numerator.
  -> BG.CFloat
  -- ^
  --
  --           [@y@]: the denominator. Must not be 0.
  -> IO BG.CFloat
sDL_fmodf = hs_bindgen_d31c39dbd23d1312

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_isinf@
foreign import ccall unsafe "hs_bindgen_a7c939d2e78d66af"
  hs_bindgen_a7c939d2e78d66af_base
    :: Double
    -> IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_isinf@
hs_bindgen_a7c939d2e78d66af
  :: BG.CDouble
  -> IO BG.CInt
hs_bindgen_a7c939d2e78d66af =
  BG.fromFFIType hs_bindgen_a7c939d2e78d66af_base

-- | Return whether the value is infinity.
--
--     [Returns]: non-zero if the value is infinity, 0 otherwise.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_isinff'
--
--     [C declaration]: @SDL_isinf@, defined at @SDL3\/SDL_stdinc.h 5199:33@
sDL_isinf
  :: BG.CDouble
  -- ^
  --
  --           [@x@]: double-precision floating point value.
  -> IO BG.CInt
sDL_isinf = hs_bindgen_a7c939d2e78d66af

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_isinff@
foreign import ccall unsafe "hs_bindgen_dd1421aaa48b6683"
  hs_bindgen_dd1421aaa48b6683_base
    :: Float
    -> IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_isinff@
hs_bindgen_dd1421aaa48b6683
  :: BG.CFloat
  -> IO BG.CInt
hs_bindgen_dd1421aaa48b6683 =
  BG.fromFFIType hs_bindgen_dd1421aaa48b6683_base

-- | Return whether the value is infinity.
--
--     [Returns]: non-zero if the value is infinity, 0 otherwise.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_isinf'
--
--     [C declaration]: @SDL_isinff@, defined at @SDL3\/SDL_stdinc.h 5213:33@
sDL_isinff
  :: BG.CFloat
  -- ^
  --
  --           [@x@]: floating point value.
  -> IO BG.CInt
sDL_isinff = hs_bindgen_dd1421aaa48b6683

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_isnan@
foreign import ccall unsafe "hs_bindgen_8b37e78060d7faba"
  hs_bindgen_8b37e78060d7faba_base
    :: Double
    -> IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_isnan@
hs_bindgen_8b37e78060d7faba
  :: BG.CDouble
  -> IO BG.CInt
hs_bindgen_8b37e78060d7faba =
  BG.fromFFIType hs_bindgen_8b37e78060d7faba_base

-- | Return whether the value is NaN.
--
--     [Returns]: non-zero if the value is NaN, 0 otherwise.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_isnanf'
--
--     [C declaration]: @SDL_isnan@, defined at @SDL3\/SDL_stdinc.h 5227:33@
sDL_isnan
  :: BG.CDouble
  -- ^
  --
  --           [@x@]: double-precision floating point value.
  -> IO BG.CInt
sDL_isnan = hs_bindgen_8b37e78060d7faba

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_isnanf@
foreign import ccall unsafe "hs_bindgen_a7fc9d37cba1e7fb"
  hs_bindgen_a7fc9d37cba1e7fb_base
    :: Float
    -> IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_isnanf@
hs_bindgen_a7fc9d37cba1e7fb
  :: BG.CFloat
  -> IO BG.CInt
hs_bindgen_a7fc9d37cba1e7fb =
  BG.fromFFIType hs_bindgen_a7fc9d37cba1e7fb_base

-- | Return whether the value is NaN.
--
--     [Returns]: non-zero if the value is NaN, 0 otherwise.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_isnan'
--
--     [C declaration]: @SDL_isnanf@, defined at @SDL3\/SDL_stdinc.h 5241:33@
sDL_isnanf
  :: BG.CFloat
  -- ^
  --
  --           [@x@]: floating point value.
  -> IO BG.CInt
sDL_isnanf = hs_bindgen_a7fc9d37cba1e7fb

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_log@
foreign import ccall unsafe "hs_bindgen_e20d665d8e9d64dc"
  hs_bindgen_e20d665d8e9d64dc_base
    :: Double
    -> IO Double

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_log@
hs_bindgen_e20d665d8e9d64dc
  :: BG.CDouble
  -> IO BG.CDouble
hs_bindgen_e20d665d8e9d64dc =
  BG.fromFFIType hs_bindgen_e20d665d8e9d64dc_base

-- | Compute the natural logarithm of @x@.
--
--     Domain: @0 \< x \<= INF@
--
--     Range: @-INF \<= y \<= INF@
--
--     It is an error for @x@ to be less than or equal to 0.
--
--     This function operates on double-precision floating point values, use SDL_logf for single-precision floats.
--
--     This function may use a different approximation across different versions, platforms and configurations. i.e, it can return a different value given the same input on different machines or operating systems, or if SDL is updated.
--
--     [Returns]: the natural logarithm of @x@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_logf', 'sDL_log10', 'sDL_exp'
--
--     [C declaration]: @SDL_log@, defined at @SDL3\/SDL_stdinc.h 5271:36@
sDL_log
  :: BG.CDouble
  -- ^
  --
  --           [@x@]: floating point value. Must be greater than 0.
  -> IO BG.CDouble
sDL_log = hs_bindgen_e20d665d8e9d64dc

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_logf@
foreign import ccall unsafe "hs_bindgen_7e096c5f793dcab0"
  hs_bindgen_7e096c5f793dcab0_base
    :: Float
    -> IO Float

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_logf@
hs_bindgen_7e096c5f793dcab0
  :: BG.CFloat
  -> IO BG.CFloat
hs_bindgen_7e096c5f793dcab0 =
  BG.fromFFIType hs_bindgen_7e096c5f793dcab0_base

-- | Compute the natural logarithm of @x@.
--
--     Domain: @0 \< x \<= INF@
--
--     Range: @-INF \<= y \<= INF@
--
--     It is an error for @x@ to be less than or equal to 0.
--
--     This function operates on single-precision floating point values, use SDL_log for double-precision floats.
--
--     This function may use a different approximation across different versions, platforms and configurations. i.e, it can return a different value given the same input on different machines or operating systems, or if SDL is updated.
--
--     [Returns]: the natural logarithm of @x@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_log', 'sDL_expf'
--
--     [C declaration]: @SDL_logf@, defined at @SDL3\/SDL_stdinc.h 5300:35@
sDL_logf
  :: BG.CFloat
  -- ^
  --
  --           [@x@]: floating point value. Must be greater than 0.
  -> IO BG.CFloat
sDL_logf = hs_bindgen_7e096c5f793dcab0

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_log10@
foreign import ccall unsafe "hs_bindgen_923087147ca0e620"
  hs_bindgen_923087147ca0e620_base
    :: Double
    -> IO Double

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_log10@
hs_bindgen_923087147ca0e620
  :: BG.CDouble
  -> IO BG.CDouble
hs_bindgen_923087147ca0e620 =
  BG.fromFFIType hs_bindgen_923087147ca0e620_base

-- | Compute the base-10 logarithm of @x@.
--
--     Domain: @0 \< x \<= INF@
--
--     Range: @-INF \<= y \<= INF@
--
--     It is an error for @x@ to be less than or equal to 0.
--
--     This function operates on double-precision floating point values, use SDL_log10f for single-precision floats.
--
--     This function may use a different approximation across different versions, platforms and configurations. i.e, it can return a different value given the same input on different machines or operating systems, or if SDL is updated.
--
--     [Returns]: the logarithm of @x@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_log10f', 'sDL_log', 'sDL_pow'
--
--     [C declaration]: @SDL_log10@, defined at @SDL3\/SDL_stdinc.h 5330:36@
sDL_log10
  :: BG.CDouble
  -- ^
  --
  --           [@x@]: floating point value. Must be greater than 0.
  -> IO BG.CDouble
sDL_log10 = hs_bindgen_923087147ca0e620

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_log10f@
foreign import ccall unsafe "hs_bindgen_bfd8d2db495dd53c"
  hs_bindgen_bfd8d2db495dd53c_base
    :: Float
    -> IO Float

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_log10f@
hs_bindgen_bfd8d2db495dd53c
  :: BG.CFloat
  -> IO BG.CFloat
hs_bindgen_bfd8d2db495dd53c =
  BG.fromFFIType hs_bindgen_bfd8d2db495dd53c_base

-- | Compute the base-10 logarithm of @x@.
--
--     Domain: @0 \< x \<= INF@
--
--     Range: @-INF \<= y \<= INF@
--
--     It is an error for @x@ to be less than or equal to 0.
--
--     This function operates on single-precision floating point values, use SDL_log10 for double-precision floats.
--
--     This function may use a different approximation across different versions, platforms and configurations. i.e, it can return a different value given the same input on different machines or operating systems, or if SDL is updated.
--
--     [Returns]: the logarithm of @x@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_log10', 'sDL_logf', 'sDL_powf'
--
--     [C declaration]: @SDL_log10f@, defined at @SDL3\/SDL_stdinc.h 5360:35@
sDL_log10f
  :: BG.CFloat
  -- ^
  --
  --           [@x@]: floating point value. Must be greater than 0.
  -> IO BG.CFloat
sDL_log10f = hs_bindgen_bfd8d2db495dd53c

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_modf@
foreign import ccall unsafe "hs_bindgen_b899f8ade3afe831"
  hs_bindgen_b899f8ade3afe831_base
    :: Double
    -> BG.Ptr BG.Void
    -> IO Double

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_modf@
hs_bindgen_b899f8ade3afe831
  :: BG.CDouble
  -> BG.Ptr BG.CDouble
  -> IO BG.CDouble
hs_bindgen_b899f8ade3afe831 =
  BG.fromFFIType hs_bindgen_b899f8ade3afe831_base

-- | Split @x@ into integer and fractional parts
--
--     This function operates on double-precision floating point values, use SDL_modff for single-precision floats.
--
--     [Returns]: the fractional part of @x@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_modff', 'sDL_trunc', 'sDL_fmod'
--
--     [C declaration]: @SDL_modf@, defined at @SDL3\/SDL_stdinc.h 5380:36@
sDL_modf
  :: BG.CDouble
  -- ^
  --
  --           [@x@]: floating point value.
  -> BG.Ptr BG.CDouble
  -- ^
  --
  --           [@y@]: output pointer to store the integer part of @x@.
  -> IO BG.CDouble
sDL_modf = hs_bindgen_b899f8ade3afe831

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_modff@
foreign import ccall unsafe "hs_bindgen_6ff7524556040016"
  hs_bindgen_6ff7524556040016_base
    :: Float
    -> BG.Ptr BG.Void
    -> IO Float

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_modff@
hs_bindgen_6ff7524556040016
  :: BG.CFloat
  -> BG.Ptr BG.CFloat
  -> IO BG.CFloat
hs_bindgen_6ff7524556040016 =
  BG.fromFFIType hs_bindgen_6ff7524556040016_base

-- | Split @x@ into integer and fractional parts
--
--     This function operates on single-precision floating point values, use SDL_modf for double-precision floats.
--
--     [Returns]: the fractional part of @x@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_modf', 'sDL_truncf', 'sDL_fmodf'
--
--     [C declaration]: @SDL_modff@, defined at @SDL3\/SDL_stdinc.h 5400:35@
sDL_modff
  :: BG.CFloat
  -- ^
  --
  --           [@x@]: floating point value.
  -> BG.Ptr BG.CFloat
  -- ^
  --
  --           [@y@]: output pointer to store the integer part of @x@.
  -> IO BG.CFloat
sDL_modff = hs_bindgen_6ff7524556040016

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_pow@
foreign import ccall unsafe "hs_bindgen_fd54b81ef06bf15c"
  hs_bindgen_fd54b81ef06bf15c_base
    :: Double
    -> Double
    -> IO Double

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_pow@
hs_bindgen_fd54b81ef06bf15c
  :: BG.CDouble
  -> BG.CDouble
  -> IO BG.CDouble
hs_bindgen_fd54b81ef06bf15c =
  BG.fromFFIType hs_bindgen_fd54b81ef06bf15c_base

-- | Raise @x@ to the power @y@
--
--     Domain: @-INF \<= x \<= INF@, @-INF \<= y \<= INF@
--
--     Range: @-INF \<= z \<= INF@
--
--     If @y@ is the base of the natural logarithm (e), consider using SDL_exp instead.
--
--     This function operates on double-precision floating point values, use SDL_powf for single-precision floats.
--
--     This function may use a different approximation across different versions, platforms and configurations. i.e, it can return a different value given the same input on different machines or operating systems, or if SDL is updated.
--
--     [Returns]: @x@ raised to the power @y@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_powf', 'sDL_exp', 'sDL_log'
--
--     [C declaration]: @SDL_pow@, defined at @SDL3\/SDL_stdinc.h 5432:36@
sDL_pow
  :: BG.CDouble
  -- ^
  --
  --           [@x@]: the base.
  -> BG.CDouble
  -- ^
  --
  --           [@y@]: the exponent.
  -> IO BG.CDouble
sDL_pow = hs_bindgen_fd54b81ef06bf15c

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_powf@
foreign import ccall unsafe "hs_bindgen_e6e1cafad3d1ca48"
  hs_bindgen_e6e1cafad3d1ca48_base
    :: Float
    -> Float
    -> IO Float

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_powf@
hs_bindgen_e6e1cafad3d1ca48
  :: BG.CFloat
  -> BG.CFloat
  -> IO BG.CFloat
hs_bindgen_e6e1cafad3d1ca48 =
  BG.fromFFIType hs_bindgen_e6e1cafad3d1ca48_base

-- | Raise @x@ to the power @y@
--
--     Domain: @-INF \<= x \<= INF@, @-INF \<= y \<= INF@
--
--     Range: @-INF \<= z \<= INF@
--
--     If @y@ is the base of the natural logarithm (e), consider using SDL_exp instead.
--
--     This function operates on single-precision floating point values, use SDL_pow for double-precision floats.
--
--     This function may use a different approximation across different versions, platforms and configurations. i.e, it can return a different value given the same input on different machines or operating systems, or if SDL is updated.
--
--     [Returns]: @x@ raised to the power @y@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_pow', 'sDL_expf', 'sDL_logf'
--
--     [C declaration]: @SDL_powf@, defined at @SDL3\/SDL_stdinc.h 5464:35@
sDL_powf
  :: BG.CFloat
  -- ^
  --
  --           [@x@]: the base.
  -> BG.CFloat
  -- ^
  --
  --           [@y@]: the exponent.
  -> IO BG.CFloat
sDL_powf = hs_bindgen_e6e1cafad3d1ca48

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_round@
foreign import ccall unsafe "hs_bindgen_263d784275f69beb"
  hs_bindgen_263d784275f69beb_base
    :: Double
    -> IO Double

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_round@
hs_bindgen_263d784275f69beb
  :: BG.CDouble
  -> IO BG.CDouble
hs_bindgen_263d784275f69beb =
  BG.fromFFIType hs_bindgen_263d784275f69beb_base

-- | Round @x@ to the nearest integer.
--
--     Rounds @x@ to the nearest integer. Values halfway between integers will be rounded away from zero.
--
--     Domain: @-INF \<= x \<= INF@
--
--     Range: @-INF \<= y \<= INF@, y integer
--
--     This function operates on double-precision floating point values, use SDL_roundf for single-precision floats. To get the result as an integer type, use SDL_lround.
--
--     [Returns]: the nearest integer to @x@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_roundf', @SDL_lround@, 'sDL_floor', 'sDL_ceil', 'sDL_trunc'
--
--     [C declaration]: @SDL_round@, defined at @SDL3\/SDL_stdinc.h 5493:36@
sDL_round
  :: BG.CDouble
  -- ^
  --
  --           [@x@]: floating point value.
  -> IO BG.CDouble
sDL_round = hs_bindgen_263d784275f69beb

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_roundf@
foreign import ccall unsafe "hs_bindgen_11783f7b112ca4ce"
  hs_bindgen_11783f7b112ca4ce_base
    :: Float
    -> IO Float

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_roundf@
hs_bindgen_11783f7b112ca4ce
  :: BG.CFloat
  -> IO BG.CFloat
hs_bindgen_11783f7b112ca4ce =
  BG.fromFFIType hs_bindgen_11783f7b112ca4ce_base

-- | Round @x@ to the nearest integer.
--
--     Rounds @x@ to the nearest integer. Values halfway between integers will be rounded away from zero.
--
--     Domain: @-INF \<= x \<= INF@
--
--     Range: @-INF \<= y \<= INF@, y integer
--
--     This function operates on single-precision floating point values, use SDL_round for double-precision floats. To get the result as an integer type, use SDL_lroundf.
--
--     [Returns]: the nearest integer to @x@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_round', @SDL_lroundf@, 'sDL_floorf', 'sDL_ceilf', 'sDL_truncf'
--
--     [C declaration]: @SDL_roundf@, defined at @SDL3\/SDL_stdinc.h 5522:35@
sDL_roundf
  :: BG.CFloat
  -- ^
  --
  --           [@x@]: floating point value.
  -> IO BG.CFloat
sDL_roundf = hs_bindgen_11783f7b112ca4ce

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_scalbn@
foreign import ccall unsafe "hs_bindgen_e6bb2ac10b5df120"
  hs_bindgen_e6bb2ac10b5df120_base
    :: Double
    -> BG.Int32
    -> IO Double

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_scalbn@
hs_bindgen_e6bb2ac10b5df120
  :: BG.CDouble
  -> BG.CInt
  -> IO BG.CDouble
hs_bindgen_e6bb2ac10b5df120 =
  BG.fromFFIType hs_bindgen_e6bb2ac10b5df120_base

-- | Scale @x@ by an integer power of two.
--
--     Multiplies @x@ by the @n@ th power of the floating point radix (always 2).
--
--     Domain: @-INF \<= x \<= INF@, @n@ integer
--
--     Range: @-INF \<= y \<= INF@
--
--     This function operates on double-precision floating point values, use SDL_scalbnf for single-precision floats.
--
--     [Returns]: @x * 2^n@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_scalbnf', 'sDL_pow'
--
--     [C declaration]: @SDL_scalbn@, defined at @SDL3\/SDL_stdinc.h 5605:36@
sDL_scalbn
  :: BG.CDouble
  -- ^
  --
  --           [@x@]: floating point value to be scaled.
  -> BG.CInt
  -- ^
  --
  --           [@n@]: integer exponent.
  -> IO BG.CDouble
sDL_scalbn = hs_bindgen_e6bb2ac10b5df120

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_scalbnf@
foreign import ccall unsafe "hs_bindgen_98b72e0135481fa6"
  hs_bindgen_98b72e0135481fa6_base
    :: Float
    -> BG.Int32
    -> IO Float

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_scalbnf@
hs_bindgen_98b72e0135481fa6
  :: BG.CFloat
  -> BG.CInt
  -> IO BG.CFloat
hs_bindgen_98b72e0135481fa6 =
  BG.fromFFIType hs_bindgen_98b72e0135481fa6_base

-- | Scale @x@ by an integer power of two.
--
--     Multiplies @x@ by the @n@ th power of the floating point radix (always 2).
--
--     Domain: @-INF \<= x \<= INF@, @n@ integer
--
--     Range: @-INF \<= y \<= INF@
--
--     This function operates on single-precision floating point values, use SDL_scalbn for double-precision floats.
--
--     [Returns]: @x * 2^n@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_scalbn', 'sDL_powf'
--
--     [C declaration]: @SDL_scalbnf@, defined at @SDL3\/SDL_stdinc.h 5630:35@
sDL_scalbnf
  :: BG.CFloat
  -- ^
  --
  --           [@x@]: floating point value to be scaled.
  -> BG.CInt
  -- ^
  --
  --           [@n@]: integer exponent.
  -> IO BG.CFloat
sDL_scalbnf = hs_bindgen_98b72e0135481fa6

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_sin@
foreign import ccall unsafe "hs_bindgen_7f63dcf686d5381e"
  hs_bindgen_7f63dcf686d5381e_base
    :: Double
    -> IO Double

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_sin@
hs_bindgen_7f63dcf686d5381e
  :: BG.CDouble
  -> IO BG.CDouble
hs_bindgen_7f63dcf686d5381e =
  BG.fromFFIType hs_bindgen_7f63dcf686d5381e_base

-- | Compute the sine of @x@.
--
--     Domain: @-INF \<= x \<= INF@
--
--     Range: @-1 \<= y \<= 1@
--
--     This function operates on double-precision floating point values, use SDL_sinf for single-precision floats.
--
--     This function may use a different approximation across different versions, platforms and configurations. i.e, it can return a different value given the same input on different machines or operating systems, or if SDL is updated.
--
--     [Returns]: sine of @x@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_sinf', 'sDL_asin', 'sDL_cos'
--
--     [C declaration]: @SDL_sin@, defined at @SDL3\/SDL_stdinc.h 5658:36@
sDL_sin
  :: BG.CDouble
  -- ^
  --
  --           [@x@]: floating point value, in radians.
  -> IO BG.CDouble
sDL_sin = hs_bindgen_7f63dcf686d5381e

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_sinf@
foreign import ccall unsafe "hs_bindgen_3b77259c6cddba0e"
  hs_bindgen_3b77259c6cddba0e_base
    :: Float
    -> IO Float

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_sinf@
hs_bindgen_3b77259c6cddba0e
  :: BG.CFloat
  -> IO BG.CFloat
hs_bindgen_3b77259c6cddba0e =
  BG.fromFFIType hs_bindgen_3b77259c6cddba0e_base

-- | Compute the sine of @x@.
--
--     Domain: @-INF \<= x \<= INF@
--
--     Range: @-1 \<= y \<= 1@
--
--     This function operates on single-precision floating point values, use SDL_sin for double-precision floats.
--
--     This function may use a different approximation across different versions, platforms and configurations. i.e, it can return a different value given the same input on different machines or operating systems, or if SDL is updated.
--
--     [Returns]: sine of @x@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_sin', 'sDL_asinf', 'sDL_cosf'
--
--     [C declaration]: @SDL_sinf@, defined at @SDL3\/SDL_stdinc.h 5686:35@
sDL_sinf
  :: BG.CFloat
  -- ^
  --
  --           [@x@]: floating point value, in radians.
  -> IO BG.CFloat
sDL_sinf = hs_bindgen_3b77259c6cddba0e

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_sqrt@
foreign import ccall unsafe "hs_bindgen_911bffe699be4bcc"
  hs_bindgen_911bffe699be4bcc_base
    :: Double
    -> IO Double

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_sqrt@
hs_bindgen_911bffe699be4bcc
  :: BG.CDouble
  -> IO BG.CDouble
hs_bindgen_911bffe699be4bcc =
  BG.fromFFIType hs_bindgen_911bffe699be4bcc_base

-- | Compute the square root of @x@.
--
--     Domain: @0 \<= x \<= INF@
--
--     Range: @0 \<= y \<= INF@
--
--     This function operates on double-precision floating point values, use SDL_sqrtf for single-precision floats.
--
--     This function may use a different approximation across different versions, platforms and configurations. i.e, it can return a different value given the same input on different machines or operating systems, or if SDL is updated.
--
--     [Returns]: square root of @x@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_sqrtf'
--
--     [C declaration]: @SDL_sqrt@, defined at @SDL3\/SDL_stdinc.h 5712:36@
sDL_sqrt
  :: BG.CDouble
  -- ^
  --
  --           [@x@]: floating point value. Must be greater than or equal to 0.
  -> IO BG.CDouble
sDL_sqrt = hs_bindgen_911bffe699be4bcc

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_sqrtf@
foreign import ccall unsafe "hs_bindgen_44ac9f7898a32796"
  hs_bindgen_44ac9f7898a32796_base
    :: Float
    -> IO Float

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_sqrtf@
hs_bindgen_44ac9f7898a32796
  :: BG.CFloat
  -> IO BG.CFloat
hs_bindgen_44ac9f7898a32796 =
  BG.fromFFIType hs_bindgen_44ac9f7898a32796_base

-- | Compute the square root of @x@.
--
--     Domain: @0 \<= x \<= INF@
--
--     Range: @0 \<= y \<= INF@
--
--     This function operates on single-precision floating point values, use SDL_sqrt for double-precision floats.
--
--     This function may use a different approximation across different versions, platforms and configurations. i.e, it can return a different value given the same input on different machines or operating systems, or if SDL is updated.
--
--     [Returns]: square root of @x@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_sqrt'
--
--     [C declaration]: @SDL_sqrtf@, defined at @SDL3\/SDL_stdinc.h 5738:35@
sDL_sqrtf
  :: BG.CFloat
  -- ^
  --
  --           [@x@]: floating point value. Must be greater than or equal to 0.
  -> IO BG.CFloat
sDL_sqrtf = hs_bindgen_44ac9f7898a32796

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_tan@
foreign import ccall unsafe "hs_bindgen_aece2559e5dc0392"
  hs_bindgen_aece2559e5dc0392_base
    :: Double
    -> IO Double

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_tan@
hs_bindgen_aece2559e5dc0392
  :: BG.CDouble
  -> IO BG.CDouble
hs_bindgen_aece2559e5dc0392 =
  BG.fromFFIType hs_bindgen_aece2559e5dc0392_base

-- | Compute the tangent of @x@.
--
--     Domain: @-INF \<= x \<= INF@
--
--     Range: @-INF \<= y \<= INF@
--
--     This function operates on double-precision floating point values, use SDL_tanf for single-precision floats.
--
--     This function may use a different approximation across different versions, platforms and configurations. i.e, it can return a different value given the same input on different machines or operating systems, or if SDL is updated.
--
--     [Returns]: tangent of @x@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_tanf', 'sDL_sin', 'sDL_cos', 'sDL_atan', 'sDL_atan2'
--
--     [C declaration]: @SDL_tan@, defined at @SDL3\/SDL_stdinc.h 5768:36@
sDL_tan
  :: BG.CDouble
  -- ^
  --
  --           [@x@]: floating point value, in radians.
  -> IO BG.CDouble
sDL_tan = hs_bindgen_aece2559e5dc0392

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_tanf@
foreign import ccall unsafe "hs_bindgen_c528bf7014ccff4b"
  hs_bindgen_c528bf7014ccff4b_base
    :: Float
    -> IO Float

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_tanf@
hs_bindgen_c528bf7014ccff4b
  :: BG.CFloat
  -> IO BG.CFloat
hs_bindgen_c528bf7014ccff4b =
  BG.fromFFIType hs_bindgen_c528bf7014ccff4b_base

-- | Compute the tangent of @x@.
--
--     Domain: @-INF \<= x \<= INF@
--
--     Range: @-INF \<= y \<= INF@
--
--     This function operates on single-precision floating point values, use SDL_tan for double-precision floats.
--
--     This function may use a different approximation across different versions, platforms and configurations. i.e, it can return a different value given the same input on different machines or operating systems, or if SDL is updated.
--
--     [Returns]: tangent of @x@.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_tan', 'sDL_sinf', 'sDL_cosf', 'sDL_atanf', 'sDL_atan2f'
--
--     [C declaration]: @SDL_tanf@, defined at @SDL3\/SDL_stdinc.h 5798:35@
sDL_tanf
  :: BG.CFloat
  -- ^
  --
  --           [@x@]: floating point value, in radians.
  -> IO BG.CFloat
sDL_tanf = hs_bindgen_c528bf7014ccff4b

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_iconv_open@
foreign import ccall unsafe "hs_bindgen_f0bd929aee0b42ea"
  hs_bindgen_f0bd929aee0b42ea_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_iconv_open@
hs_bindgen_f0bd929aee0b42ea
  :: PtrConst.PtrConst BG.CChar
  -> PtrConst.PtrConst BG.CChar
  -> IO SDL_iconv_t
hs_bindgen_f0bd929aee0b42ea =
  BG.fromFFIType hs_bindgen_f0bd929aee0b42ea_base

-- | This function allocates a context for the specified character set conversion.
--
--     [Returns]: a handle that must be freed with SDL_iconv_close, or SDL_ICONV_ERROR on failure.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_iconv', 'sDL_iconv_close', 'sDL_iconv_string'
--
--     [C declaration]: @SDL_iconv_open@, defined at @SDL3\/SDL_stdinc.h 5826:41@
sDL_iconv_open
  :: PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@tocode@]: The target character encoding, must not be NULL.
  -> PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@fromcode@]: The source character encoding, must not be NULL.
  -> IO SDL_iconv_t
sDL_iconv_open = hs_bindgen_f0bd929aee0b42ea

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_iconv_close@
foreign import ccall unsafe "hs_bindgen_3f715b186320f23e"
  hs_bindgen_3f715b186320f23e_base
    :: BG.Ptr BG.Void
    -> IO BG.Int32

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_iconv_close@
hs_bindgen_3f715b186320f23e
  :: SDL_iconv_t
  -> IO BG.CInt
hs_bindgen_3f715b186320f23e =
  BG.fromFFIType hs_bindgen_3f715b186320f23e_base

-- | This function frees a context used for character set conversion.
--
--     [Returns]: 0 on success, or -1 on failure.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_iconv', 'sDL_iconv_open', 'sDL_iconv_string'
--
--     [C declaration]: @SDL_iconv_close@, defined at @SDL3\/SDL_stdinc.h 5843:33@
sDL_iconv_close
  :: SDL_iconv_t
  -- ^
  --
  --           [@cd@]: The character set conversion handle.
  -> IO BG.CInt
sDL_iconv_close = hs_bindgen_3f715b186320f23e

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_iconv@
foreign import ccall unsafe "hs_bindgen_97b150fcf3a8acd6"
  hs_bindgen_97b150fcf3a8acd6_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> IO BG.Word64

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_iconv@
hs_bindgen_97b150fcf3a8acd6
  :: SDL_iconv_t
  -> BG.Ptr (PtrConst.PtrConst BG.CChar)
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> BG.Ptr (BG.Ptr BG.CChar)
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO HsBindgen.Runtime.LibC.CSize
hs_bindgen_97b150fcf3a8acd6 =
  BG.fromFFIType hs_bindgen_97b150fcf3a8acd6_base

-- | This function converts text between encodings, reading from and writing to a buffer.
--
--     It returns the number of successful conversions on success. On error, SDL_ICONV_E2BIG is returned when the output buffer is too small, or SDL_ICONV_EILSEQ is returned when an invalid input sequence is encountered, or SDL_ICONV_EINVAL is returned when an incomplete input sequence is encountered.
--
--     On exit:
--
--     * inbuf will point to the beginning of the next multibyte sequence. On error, this is the location of the problematic input sequence. On success, this is the end of the input sequence.
--
--     * inbytesleft will be set to the number of bytes left to convert, which will be 0 on success.
--
--     * outbuf will point to the location where to store the next output byte.
--
--     * outbytesleft will be set to the number of bytes left in the output buffer.
--
--     [Returns]: the number of conversions on success, or a negative error code.
--
--     [Thread safety]: Do not use the same 'SDL_iconv_t' from two threads at once.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_iconv_open', 'sDL_iconv_close', 'sDL_iconv_string'
--
--     [C declaration]: @SDL_iconv@, defined at @SDL3\/SDL_stdinc.h 5883:36@
sDL_iconv
  :: SDL_iconv_t
  -- ^
  --
  --           [@cd@]: The character set conversion context, created in @SDL_iconv_open()@.
  -> BG.Ptr (PtrConst.PtrConst BG.CChar)
  -- ^
  --
  --           [@inbuf@]: Address of variable that points to the first character of the input sequence.
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@inbytesleft@]: The number of bytes in the input buffer.
  -> BG.Ptr (BG.Ptr BG.CChar)
  -- ^
  --
  --           [@outbuf@]: Address of variable that points to the output buffer.
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@outbytesleft@]: The number of bytes in the output buffer.
  -> IO HsBindgen.Runtime.LibC.CSize
sDL_iconv = hs_bindgen_97b150fcf3a8acd6

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_iconv_string@
foreign import ccall unsafe "hs_bindgen_75bcf8b9f2da9e0a"
  hs_bindgen_75bcf8b9f2da9e0a_base
    :: BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> BG.Ptr BG.Void
    -> BG.Word64
    -> IO (BG.Ptr BG.Void)

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_iconv_string@
hs_bindgen_75bcf8b9f2da9e0a
  :: PtrConst.PtrConst BG.CChar
  -> PtrConst.PtrConst BG.CChar
  -> PtrConst.PtrConst BG.CChar
  -> HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr BG.CChar)
hs_bindgen_75bcf8b9f2da9e0a =
  BG.fromFFIType hs_bindgen_75bcf8b9f2da9e0a_base

-- | Helper function to convert a string\'s encoding in one call.
--
--     This function converts a buffer or string between encodings in one pass.
--
--     The string does not need to be NULL-terminated; this function operates on the number of bytes specified in @inbytesleft@ whether there is a NULL character anywhere in the buffer.
--
--     The returned string is owned by the caller, and should be passed to SDL_free when no longer needed.
--
--     [Returns]: a new string, converted to the new encoding, or NULL on error.
--
--     [Thread safety]: It is safe to call this function from any thread.
--
--     @since 3.2.0
--
--     [See also]: 'sDL_iconv_open', 'sDL_iconv_close', 'sDL_iconv'
--
--     [C declaration]: @SDL_iconv_string@, defined at @SDL3\/SDL_stdinc.h 5920:36@
sDL_iconv_string
  :: PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@tocode@]: the character encoding of the output string. Examples are \"UTF-8\", \"UCS-4\", etc.
  -> PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@fromcode@]: the character encoding of data in @inbuf@.
  -> PtrConst.PtrConst BG.CChar
  -- ^
  --
  --           [@inbuf@]: the string to convert to a different encoding.
  -> HsBindgen.Runtime.LibC.CSize
  -- ^
  --
  --           [@inbytesleft@]: the size of the input string /in bytes/.
  -> IO (BG.Ptr BG.CChar)
sDL_iconv_string = hs_bindgen_75bcf8b9f2da9e0a

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_size_mul_check_overflow_builtin@
foreign import ccall unsafe "hs_bindgen_51dba5ddaea9f2e4"
  hs_bindgen_51dba5ddaea9f2e4_base
    :: BG.Word64
    -> BG.Word64
    -> BG.Ptr BG.Void
    -> IO BG.Word8

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_size_mul_check_overflow_builtin@
hs_bindgen_51dba5ddaea9f2e4
  :: HsBindgen.Runtime.LibC.CSize
  -> HsBindgen.Runtime.LibC.CSize
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO BG.CBool
hs_bindgen_51dba5ddaea9f2e4 =
  BG.fromFFIType hs_bindgen_51dba5ddaea9f2e4_base

-- | [C declaration]: @SDL_size_mul_check_overflow_builtin@, defined at @SDL3\/SDL_stdinc.h 6101:23@
sDL_size_mul_check_overflow_builtin
  :: HsBindgen.Runtime.LibC.CSize
  -- ^ [C declaration]: @a@
  -> HsBindgen.Runtime.LibC.CSize
  -- ^ [C declaration]: @b@
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -- ^ [C declaration]: @ret@
  -> IO BG.CBool
sDL_size_mul_check_overflow_builtin =
  hs_bindgen_51dba5ddaea9f2e4

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_size_add_check_overflow_builtin@
foreign import ccall unsafe "hs_bindgen_7509bdb3d2cd84da"
  hs_bindgen_7509bdb3d2cd84da_base
    :: BG.Word64
    -> BG.Word64
    -> BG.Ptr BG.Void
    -> IO BG.Word8

-- __unique:__ @sdl3bindgensys_SDL3.Sys.Bindgen.Stdinc_Unsafe_SDL_size_add_check_overflow_builtin@
hs_bindgen_7509bdb3d2cd84da
  :: HsBindgen.Runtime.LibC.CSize
  -> HsBindgen.Runtime.LibC.CSize
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO BG.CBool
hs_bindgen_7509bdb3d2cd84da =
  BG.fromFFIType hs_bindgen_7509bdb3d2cd84da_base

-- | [C declaration]: @SDL_size_add_check_overflow_builtin@, defined at @SDL3\/SDL_stdinc.h 6139:23@
sDL_size_add_check_overflow_builtin
  :: HsBindgen.Runtime.LibC.CSize
  -- ^ [C declaration]: @a@
  -> HsBindgen.Runtime.LibC.CSize
  -- ^ [C declaration]: @b@
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -- ^ [C declaration]: @ret@
  -> IO BG.CBool
sDL_size_add_check_overflow_builtin =
  hs_bindgen_7509bdb3d2cd84da