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

Function SDL_PrintLong

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

Source from the content-addressed store, hash-verified

1492}
1493
1494static size_t
1495SDL_PrintLong(char *text, size_t maxlen, SDL_FormatInfo *info, long value)
1496{
1497 char num[130], *p = num;
1498
1499 if (info->force_sign && value >= 0L) {
1500 *p++ = '+';
1501 }
1502
1503 SDL_ltoa(value, p, info ? info->radix : 10);
1504 SDL_IntPrecisionAdjust(num, maxlen, info);
1505 return SDL_PrintString(text, maxlen, info, num);
1506}
1507
1508static size_t
1509SDL_PrintUnsignedLong(char *text, size_t maxlen, SDL_FormatInfo *info, unsigned long value)

Callers 1

SDL_vsnprintfFunction · 0.85

Calls 3

SDL_ltoaFunction · 0.85
SDL_IntPrecisionAdjustFunction · 0.85
SDL_PrintStringFunction · 0.85

Tested by

no test coverage detected