sdlStrtokr function
extern DECLSPEC char *SDLCALL SDL_strtokr(char *s1, const char *s2, char **saveptr)
Implementation
Pointer<Int8> sdlStrtokr(
Pointer<Int8> s1, String? s2, Pointer<Pointer<Int8>> saveptr) {
final sdlStrtokrLookupFunction = libSdl2.lookupFunction<
Pointer<Int8> Function(
Pointer<Int8> s1, Pointer<Utf8> s2, Pointer<Pointer<Int8>> saveptr),
Pointer<Int8> Function(Pointer<Int8> s1, Pointer<Utf8> s2,
Pointer<Pointer<Int8>> saveptr)>('SDL_strtokr');
final s2Pointer = s2 != null ? s2.toNativeUtf8() : nullptr;
final result = sdlStrtokrLookupFunction(s1, s2Pointer, saveptr);
calloc.free(s2Pointer);
return result;
}