sdlWcsnlen function

int sdlWcsnlen(
  1. Pointer<Int16> wstr,
  2. int maxlen
)
extern SDL_DECLSPEC size_t SDLCALL SDL_wcsnlen(const wchar_t *wstr, size_t maxlen)

Implementation

int sdlWcsnlen(Pointer<Int16> wstr, int maxlen) {
  final sdlWcsnlenLookupFunction = libSdl3.lookupFunction<
      Uint32 Function(Pointer<Int16> wstr, Uint32 maxlen),
      int Function(Pointer<Int16> wstr, int maxlen)>('SDL_wcsnlen');
  return sdlWcsnlenLookupFunction(wstr, maxlen);
}