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

Function SDL_ultoa

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

Source from the content-addressed store, hash-verified

771}
772
773char *
774SDL_ultoa(unsigned long value, char *string, int radix)
775{
776#if defined(HAVE__ULTOA)
777 return _ultoa(value, string, radix);
778#else
779 char *bufp = string;
780
781 if (value) {
782 while (value > 0) {
783 *bufp++ = ntoa_table[value % radix];
784 value /= radix;
785 }
786 } else {
787 *bufp++ = '0';
788 }
789 *bufp = '\0';
790
791 /* The numbers went into the string backwards. :) */
792 SDL_strrev(string);
793
794 return string;
795#endif /* HAVE__ULTOA */
796}
797
798char *
799SDL_lltoa(Sint64 value, char *string, int radix)

Callers 3

SDL_uitoaFunction · 0.85
SDL_ltoaFunction · 0.85
SDL_PrintUnsignedLongFunction · 0.85

Calls 1

SDL_strrevFunction · 0.85

Tested by

no test coverage detected