logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_ulltoa - Convert an unsigned long long integer into a string.

Availability

       This function is available since SDL 3.2.0.

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

value  the unsigned long long integer to convert.

       str    the buffer to write the string into.

       radix  the radix to use for string generation.

Header File

       Defined in SDL3/SDL_stdinc.h

Name

       SDL_ulltoa - Convert an unsigned long long integer into a string.

Return Value

       Returns str .

See Also

(3), SDL_lltoa(3), (3), SDL_uitoa(3), (3), SDL_ultoa(3)

Simple Directmedia Layer                           SDL 3.2.10                                      SDL_ulltoa(3)

Synopsis

#include"SDL3/SDL.h"char*SDL_ulltoa(unsignedlonglongvalue,char*str,intradix);

Thread Safety

       It is safe to call this function from any thread.

return

See Also