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

Function SDL_strtoull

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

Source from the content-addressed store, hash-verified

933}
934
935Uint64
936SDL_strtoull(const char *string, char **endp, int base)
937{
938#if defined(HAVE_STRTOULL)
939 return strtoull(string, endp, base);
940#else
941 size_t len;
942 Uint64 value = 0;
943
944 if (!base) {
945 if ((SDL_strlen(string) > 2) && (SDL_strncmp(string, "0x", 2) == 0)) {
946 base = 16;
947 } else {
948 base = 10;
949 }
950 }
951
952 len = SDL_ScanUnsignedLongLong(string, base, &value);
953 if (endp) {
954 *endp = (char *) string + len;
955 }
956 return value;
957#endif /* HAVE_STRTOULL */
958}
959
960double
961SDL_strtod(const char *string, char **endp)

Callers

nothing calls this directly

Calls 4

strtoullFunction · 0.85
SDL_strlenFunction · 0.85
SDL_strncmpFunction · 0.85
SDL_ScanUnsignedLongLongFunction · 0.85

Tested by

no test coverage detected