SDL_isinff(3)
SDL_isinff(3) π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, this one's a lil baby function but she's important, fr fr π
β¨ NAME β¨
SDL_isinff β tells you whether a value is infinity or not, that's it, that's the whole job π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_stdinc.h>
int SDL_isinff(float x);
like look at her, one include, one function call, no drama, we love a low-maintenance icon π
π¦ FUNCTION PARAMETERS π¦
xβ a floating point value. just. a float. hand it over and she'll vibe check it for you π«Ά
π RETURN VALUE π
Returns non-zero if the value is infinity, and 0 otherwise. so it's giving "yes bestie" or "no bestie", very binary, very decisive, no in-between nonsense β¨
ngl it's not literally returning "true/false", it's non-zero vs 0, so don't go comparing it to 1 and expecting a promise, okay? π
π§ THREAD SAFETY π§
It is safe to call this function from any thread. yes queen, no locks, no mutexes, no stress, call her from wherever, she does not care π
β AVAILABILITY β
This function is available since SDL 3.2.0. so if you're on something older... bestie, upgrade, I'm begging π
π SEE ALSO π
SDL_isinf(3)β the sibling, the double-flavoured version, go say hi π
and that's the whole page, mwah π sending you off with the deets: this is from Simple Directmedia Layer, version SDL 3.4.18, so if you cite her, cite her right. slay, go check your infinities, bye bestie πβ¨π
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms