Skip to content

Commit 6c51ec4

Browse files
committed
Add definition for SDL_iconv_string()
1 parent 433e7da commit 6c51ec4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

units/sdlstdinc.inc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,12 @@ function SDL_realloc(mem: Pointer; size: csize_t): Pointer; cdecl;
105105
*)
106106
procedure SDL_free(mem: Pointer); cdecl;
107107
external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_free' {$ENDIF} {$ENDIF};
108+
109+
(**
110+
* This function converts a string between encodings in one pass, returning a
111+
* string that must be freed with SDL_free(), or NIL on error.
112+
*
113+
* \since This function is available since SDL 2.0.0.
114+
*)
115+
function SDL_iconv_string(tocode, fromcode, inbuf: PAnsiChar; inbytesleft: csize_t): PAnsiChar; cdecl
116+
external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_iconv_string' {$ENDIF} {$ENDIF};

0 commit comments

Comments
 (0)