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