MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / SDL_strrchr

Function SDL_strrchr

deps/SDL2/src/stdlib/SDL_string.c:688–705  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

686}
687
688char *
689SDL_strrchr(const char *string, int c)
690{
691#ifdef HAVE_STRRCHR
692 return SDL_const_cast(char*,strrchr(string, c));
693#elif defined(HAVE_RINDEX)
694 return SDL_const_cast(char*,rindex(string, c));
695#else
696 const char *bufp = string + SDL_strlen(string) - 1;
697 while (bufp >= string) {
698 if (*bufp == c) {
699 return (char *) bufp;
700 }
701 --bufp;
702 }
703 return NULL;
704#endif /* HAVE_STRRCHR */
705}
706
707char *
708SDL_strstr(const char *haystack, const char *needle)

Callers 10

GetAppNameFunction · 0.85
IBus_CheckConnectionFunction · 0.85
SDL_IBus_InitFunction · 0.85
get_capsFunction · 0.85
get_prognameFunction · 0.85
SDL_GetBasePathFunction · 0.85
get_classnameFunction · 0.85
get_classnameFunction · 0.85

Calls 1

SDL_strlenFunction · 0.85

Tested by

no test coverage detected