SDL_strlwr(3)
π SDL_strlwr π
okay bestie, welcome to SDL_strlwr from the SDL3 functions manual, page 3, we're in the group chat now π
β¨ NAME β¨
SDL_strlwr β convert a string to lowercase, in place, no thoughts just vibes π¦
π SYNOPSIS π
#include <SDL3/SDL_stdinc.h>
char * SDL_strlwr(char *str);
πΈ DESCRIPTION πΈ
WARNING: no matter what your system locale is doing, this will only convert ASCII values'A'through'Z'to lowercase. That's it. That's the whole conversion. π
This function operates on a null-terminated string of bytes β even if it is malformed UTF-8! β and converts ASCII characters 'A' through 'Z' to their lowercase equivalents in-place, returning the original str pointer. Periodt. π
like, it does not care about your encoding drama, it does not allocate, it just reaches in and lowercases the ASCII letters right where they live. iconic behavior honestly β¨
π FUNCTION PARAMETERS π
strβ the string to convert in-place. Can not beNULL. π« (seriously, don't, that's not the move bestie)
π«Ά RETURN VALUE π«Ά
Returns the str pointer passed into this function. Same pointer you handed it, now lowercased. giving "you get back what you gave" energy π
π§ THREAD SAFETY π§
It is safe to call this function from any thread. slay, no locks, no stress π
β AVAILABILITY β
This function is available since SDL 3.2.0. iykyk π
π SEE ALSO π
SDL_strupr(3)β the uppercase bestie, go say hi π
and that's the whole page, fr fr π this was the SDL_strlwr(3) manual page from Simple Directmedia Layer, SDL 3.4.18 β mwah, love u, bye ππΈ
π¦ 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