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 be NULL, and it must not overlap with breakset. like, boundaries, bestie. 🫢
  • breakset β€” a null-terminated string containing the list of characters to look for. must not be NULL, and it must not overlap with str. 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