SDL_strpbrk(3)
π SDL_strpbrk(3) β SDL3 FUNCTIONS π
okay so bestie, this is the SDL_strpbrk page from the SDL3 FUNCTIONS manual, and it is lowkey one of those tiny string-search girlies that eats every time. no cap. π
π NAME π
SDL_strpbrk β searches a string for the first occurrence of any character contained in a breakset, and returns a pointer from the string to that character. periodt. β¨
β¨ SYNOPSIS β¨
#include <SDL3/SDL_stdinc.h>
char * SDL_strpbrk(const char *str, const char *breakset);
π FUNCTION PARAMETERS π
strβ the null-terminated string to be searched. must not beNULL, and it must not overlap withbreakset. like, boundaries, bestie. π«Άbreaksetβ a null-terminated string containing the list of characters to look for. must not beNULL, and it must not overlap withstr. keep them separate, iykyk. π¦
π¦ RETURN VALUE π¦
Returns a pointer to the location, in str, of the first occurrence of a character present in the breakset, or NULL if none is found. that's it, that's the whole serve. πβ¨
π₯ THREAD SAFETY π₯
It is safe to call this function from any thread. go off, multithreaded main character. π
π AVAILABILITY π
This function is available since SDL 3.2.0. iconic behavior fr fr. β
mwah π β signing off from the Simple Directmedia Layer manual, SDL 3.4.18 edition, on the SDL_strpbrk(3) page. (the footer had no date, so we're just vibing with the version, bestie. no date, no problem. π)
π¦ 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