table of contents
- trixie 3.2.10+ds-1
 - testing 3.2.26+ds-1
 - unstable 3.2.26+ds-2
 - experimental 3.3.2+git20251103~dc5b136+ds-1
 
| SDL_ultoa(3) | SDL3 FUNCTIONS | SDL_ultoa(3) | 
NAME¶
SDL_ultoa - Convert an unsigned long integer into a string.
HEADER FILE¶
Defined in SDL3/SDL_stdinc.h
SYNOPSIS¶
#include "SDL3/SDL.h"
char * SDL_ultoa(unsigned long value, char *str, int radix);
DESCRIPTION¶
This requires a radix to specified for string format. Specifying 10 produces a decimal number, 16 hexidecimal, etc. Must be in the range of 2 to 36.
Note that this function will overflow a buffer if str is
    not large enough to hold the output! It may be safer to use
    SDL_snprintf
  
   to clamp output, or SDL_asprintf
  
   to allocate a buffer. Otherwise, it doesn't hurt to allocate much more space
    than you expect to use (and don't forget null terminator bytes, etc).
FUNCTION PARAMETERS¶
RETURN VALUE¶
Returns str .
THREAD SAFETY¶
It is safe to call this function from any thread.
AVAILABILITY¶
This function is available since SDL 3.2.0.
SEE ALSO¶
•(3), SDL_ltoa(3), •(3), SDL_uitoa(3), •(3), SDL_ulltoa(3)
| SDL 3.2.10 | Simple Directmedia Layer |