SDL_stdinc.h
Name
SDL_stdinc.h -- short description here.
Synopsis
#include "SDL_stdinc.h"
Description
SDL_stdinc.h is a general header that includes C language support. This file is included from almost all other SDL header files.
SDL_stdinc.h defines the following types:
SDL_bool |
An enumeration containing the values SDL_FALSE and SDL_TRUE. |
Sint8 |
A signed 8-bit integer type. |
Uint8 |
An unsigned 8-bit integer type. |
Sint16 |
A signed 16-bit integer type. |
Uint16 |
An unsigned 16-bit integer type. |
Sint32 |
A signed 32-bit integer type. |
Uint32 |
An unsigned 32-bit integer type. |
Sint64 |
A signed 64-bit integer type. |
Uint64 |
An unsigned 64-bit integer type. |
SDL_iconv_t |
SDL_stdinc.h also defines a set of functions and macros used throughout the SDL library, most of which are found in standard C libraries. These are:
#define SDL_arraysize(array)
- The number of elements in an array
#define SDL_TABLESIZE(table)
- Same as SDL_arraysize
#define SDL_reinterpret_cast(type, expression)
- Use proper C++ casts when compiled as C++ to be compatible with the option -Wold-style-cast of GCC (and -Werror=old-style-cast in GCC 4.2 and above.
#define SDL_static_cast(type, expression)
- See SDL_reinterpret_cast
void* SDL_malloc(size_t size);
void* SDL_calloc(size_t nmemb, size_t size);
void* SDL_realloc(void *mem, size_t size);
void SDL_free(void *mem);
#define SDL_stack_alloc(type, count)
#define SDL_stack_free(data)
char* SDL_getenv(const char *name);
int SDL_putenv(const char *variable);
void SDLCALL SDL_qsort(void *base, size_t nmemb, size_t size, int (*compare) (const void *, const void *));
#define SDL_abs(X)
#define SDL_min(x, y)
#define SDL_max(x, y)
#define SDL_isdigit(X)
#define SDL_isspace(X)
#define SDL_toupper(X)
#define SDL_tolower(X)
void* SDL_memset(void *dst, int c, size_t len);
#define SDL_zero(x)
#define SDL_zerop(x)
#define SDL_memset4(dst, val, len)
void* SDL_memcpy(void *dst, const void *src, size_t len);
#define SDL_memcpy4(dst, src, len)
void* SDL_revcpy(void *dst, const void *src, size_t len);
#define SDL_memmove(dst, src, len)
int SDL_memcmp(const void *s1, const void *s2, size_t len);
size_t SDL_strlen(const char *string);
size_t SDL_wcslen(const wchar_t * string);
size_t SDL_strlcpy(char *dst, const char *src, size_t maxlen);
size_t SDL_strlcat(char *dst, const char *src, size_t maxlen);
char* SDL_strdup(const char *string);
char* SDL_strrev(char *string);
char* SDL_strupr(char *string);
char* SDL_strlwr(char *string);
char* SDL_strchr(const char *string, int c);
char* SDL_strrchr(const char *string, int c);
char* SDL_strstr(const char *haystack, const char *needle);
#define SDL_itoa(value, string, radix)
char* SDL_ltoa(long value, char *string, int radix);
#define SDL_uitoa(value, string, radix)
char* SDL_ultoa(unsigned long value, char *string, int radix);
long SDL_strtol(const char *string, char **endp, int base);
unsigned long SDL_strtoul(const char *string, char **endp, int base);
char* SDL_lltoa(Sint64 value, char *string, int radix);
char* SDL_ulltoa(Uint64 value, char *string, int radix);
Sint64 SDL_strtoll(const char *string, char **endp, int base);
Uint64 SDL_strtoull(const char *string, char **endp, int base);
double SDL_strtod(const char *string, char **endp);
#define SDL_atoi(X)
#define SDL_atof(X)
int SDL_strcmp(const char *str1, const char *str2);
int SDL_strncmp(const char *str1, const char *str2, size_t maxlen);
int SDL_strcasecmp(const char *str1, const char *str2);
int SDL_strncasecmp(const char *str1, const char *str2, size_t maxlen);
int SDL_sscanf(const char *text, const char *fmt, ...);
int SDL_snprintf(char *text, size_t maxlen, const char *fmt, ...);
int SDL_vsnprintf(char *text, size_t maxlen, const char *fmt, va_list ap);
#define SDL_ceil(x)
double SDL_copysign(double x, double y);
double SDL_cos(double x);
#define SDL_cosf(x)
double SDL_fabs(double x);
double SDL_floor(double x);
double SDL_log(double x);
double SDL_pow(double x, double y);
double SDL_scalbn(double x, int n);
double SDL_sin(double x);
#define SDL_sinf(x)
double SDL_sqrt(double x);
SDL_iconv_t SDL_iconv_open(const char *tocode, const char *fromcode);
int SDL_iconv_close(SDL_iconv_t cd);
size_t SDLCALL SDL_iconv(SDL_iconv_t cd, const char **inbuf, size_t * inbytesleft, char **outbuf, size_t * outbytesleft);
char *SDLCALL SDL_iconv_string(const char *tocode, const char *fromcode, const char *inbuf, size_t inbytesleft);
- This function converts a string between encodings in one pass, returning a string that must be freed with SDL_free() or NULL on error.
#define SDL_iconv_utf8_locale(S)
#define SDL_iconv_utf8_ucs2(S)
#define SDL_iconv_utf8_ucs4(S)
Note: In general, you do not need to include this file yourself if you use any other part of the SDL library.
