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

Function SDL_ltoa

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

Source from the content-addressed store, hash-verified

752}
753
754char *
755SDL_ltoa(long value, char *string, int radix)
756{
757#if defined(HAVE__LTOA)
758 return _ltoa(value, string, radix);
759#else
760 char *bufp = string;
761
762 if (value < 0) {
763 *bufp++ = '-';
764 SDL_ultoa(-value, bufp, radix);
765 } else {
766 SDL_ultoa(value, bufp, radix);
767 }
768
769 return string;
770#endif /* HAVE__LTOA */
771}
772
773char *
774SDL_ultoa(unsigned long value, char *string, int radix)

Callers 2

SDL_itoaFunction · 0.85
SDL_PrintLongFunction · 0.85

Calls 1

SDL_ultoaFunction · 0.85

Tested by

no test coverage detected