SDL  2.0
SDL_hints_c.h File Reference
#include "./SDL_internal.h"
+ Include dependency graph for SDL_hints_c.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

SDL_bool SDL_GetStringBoolean (const char *value, SDL_bool default_value)
 

Function Documentation

◆ SDL_GetStringBoolean()

SDL_bool SDL_GetStringBoolean ( const char *  value,
SDL_bool  default_value 
)

Definition at line 123 of file SDL_hints.c.

124 {
125  if (!value || !*value) {
126  return default_value;
127  }
128  if (*value == '0' || SDL_strcasecmp(value, "false") == 0) {
129  return SDL_FALSE;
130  }
131  return SDL_TRUE;
132 }

References SDL_FALSE, SDL_strcasecmp, and SDL_TRUE.

Referenced by SDL_GetHintBoolean(), SDL_MouseTouchEventsChanged(), and SDL_TouchMouseEventsChanged().

SDL_strcasecmp
#define SDL_strcasecmp
Definition: SDL_dynapi_overrides.h:419
SDL_FALSE
@ SDL_FALSE
Definition: SDL_stdinc.h:163
SDL_TRUE
@ SDL_TRUE
Definition: SDL_stdinc.h:164
value
GLsizei const GLfloat * value
Definition: SDL_opengl_glext.h:701