strstr function

Pointer<Int8> strstr(
  1. Pointer<Int8> __haystack,
  2. Pointer<Int8> __needle
)

Implementation

ffi.Pointer<ffi.Int8> strstr(
  ffi.Pointer<ffi.Int8> __haystack,
  ffi.Pointer<ffi.Int8> __needle,
) {
  _strstr ??= Libc().dylib.lookupFunction<
      ffi.Pointer<ffi.Int8> Function(
          ffi.Pointer<ffi.Int8>, ffi.Pointer<ffi.Int8>),
      _dart_strstr>('strstr');
  return _strstr!(
    __haystack,
    __needle,
  );
}