sdlWcsnstr function

Pointer<Int16> sdlWcsnstr(
  1. Pointer<Int16> haystack,
  2. Pointer<Int16> needle,
  3. int maxlen
)
extern SDL_DECLSPEC wchar_t * SDLCALL SDL_wcsnstr(const wchar_t *haystack, const wchar_t *needle, size_t maxlen)

Implementation

Pointer<Int16> sdlWcsnstr(
    Pointer<Int16> haystack, Pointer<Int16> needle, int maxlen) {
  final sdlWcsnstrLookupFunction = libSdl3.lookupFunction<
      Pointer<Int16> Function(
          Pointer<Int16> haystack, Pointer<Int16> needle, Uint32 maxlen),
      Pointer<Int16> Function(Pointer<Int16> haystack, Pointer<Int16> needle,
          int maxlen)>('SDL_wcsnstr');
  return sdlWcsnstrLookupFunction(haystack, needle, maxlen);
}