lsearch method

Pointer<Void> lsearch(
  1. Pointer<Void> _Key,
  2. Pointer<Void> _Base,
  3. Pointer<Uint32> _NumOfElements,
  4. int _SizeOfElements,
  5. Pointer<NativeFunction<_CoreCrtNonSecureSearchSortCompareFunction>> _CompareFunction,
)

Implementation

ffi.Pointer<ffi.Void> lsearch(
  ffi.Pointer<ffi.Void> _Key,
  ffi.Pointer<ffi.Void> _Base,
  ffi.Pointer<ffi.Uint32> _NumOfElements,
  int _SizeOfElements,
  ffi.Pointer<ffi.NativeFunction<_CoreCrtNonSecureSearchSortCompareFunction>>
      _CompareFunction,
) {
  return (_lsearch_1 ??=
      _dylib.lookupFunction<_c_lsearch, _dart_lsearch>('lsearch'))(
    _Key,
    _Base,
    _NumOfElements,
    _SizeOfElements,
    _CompareFunction,
  );
}