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

Function SDL_strtoll

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

Source from the content-addressed store, hash-verified

908}
909
910Sint64
911SDL_strtoll(const char *string, char **endp, int base)
912{
913#if defined(HAVE_STRTOLL)
914 return strtoll(string, endp, base);
915#else
916 size_t len;
917 Sint64 value = 0;
918
919 if (!base) {
920 if ((SDL_strlen(string) > 2) && (SDL_strncmp(string, "0x", 2) == 0)) {
921 base = 16;
922 } else {
923 base = 10;
924 }
925 }
926
927 len = SDL_ScanLongLong(string, base, &value);
928 if (endp) {
929 *endp = (char *) string + len;
930 }
931 return value;
932#endif /* HAVE_STRTOLL */
933}
934
935Uint64
936SDL_strtoull(const char *string, char **endp, int base)

Callers 1

SDL_thread.cFile · 0.85

Calls 4

strtollFunction · 0.85
SDL_strlenFunction · 0.85
SDL_strncmpFunction · 0.85
SDL_ScanLongLongFunction · 0.85

Tested by

no test coverage detected