| 1492 | } |
| 1493 | |
| 1494 | static size_t |
| 1495 | SDL_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 | |
| 1508 | static size_t |
| 1509 | SDL_PrintUnsignedLong(char *text, size_t maxlen, SDL_FormatInfo *info, unsigned long value) |
no test coverage detected