sdlStrlcpy function
extern DECLSPEC size_t SDLCALL SDL_strlcpy(SDL_OUT_Z_CAP(maxlen) char *dst, const char *src, size_t maxlen)
Implementation
int sdlStrlcpy(Pointer<NativeType> arg0, String? src, int maxlen) {
final sdlStrlcpyLookupFunction = libSdl2.lookupFunction<
Uint32 Function(
Pointer<NativeType> arg0, Pointer<Utf8> src, Uint32 maxlen),
int Function(Pointer<NativeType> arg0, Pointer<Utf8> src,
int maxlen)>('SDL_strlcpy');
final srcPointer = src != null ? src.toNativeUtf8() : nullptr;
final result = sdlStrlcpyLookupFunction(arg0, srcPointer, maxlen);
calloc.free(srcPointer);
return result;
}