| SDL_iconv_string(3) | SDL3 FUNCTIONS | SDL_iconv_string(3) |
SDL_iconv_string - Helper function to convert a string's encoding in one call.
Defined in SDL3/SDL_stdinc.h
#include "SDL3/SDL.h"
char * SDL_iconv_string(const char *tocode,
const char *fromcode,
const char *inbuf,
size_t inbytesleft);
This function converts a buffer or string between encodings in one pass.
The string does not need to be NULL-terminated; this function operates on the number of bytes specified in inbytesleft whether there is a NULL character anywhere in the buffer.
The returned string is owned by the caller, and should be passed to
SDL_free
when no longer needed.
Returns a new string, converted to the new encoding, or NULL on error.
This function is available since SDL 3.2.0.
•(3), SDL_iconv_open(3), •(3), SDL_iconv_close(3), •(3), SDL_iconv(3)
| SDL 3.2.10 | Simple Directmedia Layer |