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

Function SDL_ulltoa

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

Source from the content-addressed store, hash-verified

815}
816
817char *
818SDL_ulltoa(Uint64 value, char *string, int radix)
819{
820#if defined(HAVE__UI64TOA)
821 return _ui64toa(value, string, radix);
822#else
823 char *bufp = string;
824
825 if (value) {
826 while (value > 0) {
827 *bufp++ = ntoa_table[value % radix];
828 value /= radix;
829 }
830 } else {
831 *bufp++ = '0';
832 }
833 *bufp = '\0';
834
835 /* The numbers went into the string backwards. :) */
836 SDL_strrev(string);
837
838 return string;
839#endif /* HAVE__UI64TOA */
840}
841
842int SDL_atoi(const char *string)
843{

Callers 2

SDL_lltoaFunction · 0.85

Calls 1

SDL_strrevFunction · 0.85

Tested by

no test coverage detected