native_getopt function

int native_getopt(
  1. int argc,
  2. Pointer<Pointer<Utf8>> ___argv,
  3. Pointer<Utf8> __shortopts
)

Implementation

int native_getopt(
  int argc,
  ffi.Pointer<ffi.Pointer<Utf8>> ___argv,
  ffi.Pointer<Utf8> __shortopts,
) {
  _getopt ??= Libc().dylib.lookupFunction<
      ffi.Int32 Function(
          ffi.Int32, ffi.Pointer<ffi.Pointer<Utf8>>, ffi.Pointer<Utf8>),
      _dart_getopt>('getopt');
  return _getopt!(
    argc,
    ___argv,
    __shortopts,
  );
}