sdlIconvClose function stdinc

int sdlIconvClose(
  1. Pointer<SdlIconvT> cd
)

This function frees a context used for character set conversion.

\param cd The character set conversion handle. \returns 0 on success, or -1 on failure.

\since This function is available since SDL 3.2.0.

\sa SDL_iconv \sa SDL_iconv_open \sa SDL_iconv_string

extern SDL_DECLSPEC int SDLCALL SDL_iconv_close(SDL_iconv_t cd)

Implementation

int sdlIconvClose(Pointer<SdlIconvT> cd) {
  final sdlIconvCloseLookupFunction = _libSdl
      .lookupFunction<
        Int32 Function(Pointer<SdlIconvT> cd),
        int Function(Pointer<SdlIconvT> cd)
      >('SDL_iconv_close');
  return sdlIconvCloseLookupFunction(cd);
}