Risk-Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

SDL_isalnum - Query if a character is alphabetic (a letter) or a number.

Availability

       This function is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.20                                     SDL_isalnum(3)

Description

WARNING:  Regardless  of  system  locale, this will only treat ASCII values for English 'a-z', 'A-Z', and
       '0-9' as true.

Function Parameters

x      character value to check.

Name

       SDL_isalnum - Query if a character is alphabetic (a letter) or a number.

Return Value

       Returns non-zero if x falls within the character class, zero otherwise.

Synopsis

#include<SDL3/SDL_stdinc.h>intSDL_isalnum(intx);

Thread Safety

       It is safe to call this function from any thread.

See Also