strerror_r function

int strerror_r(
  1. int __errnum,
  2. Pointer<Int8> __buf,
  3. int __buflen
)

Implementation

int strerror_r(
  int __errnum,
  ffi.Pointer<ffi.Int8> __buf,
  int __buflen,
) {
  _strerror_r ??= Libc().dylib.lookupFunction<
      ffi.Int32 Function(ffi.Int32, ffi.Pointer<ffi.Int8>, ffi.Uint64),
      _dart_strerror_r>('strerror_r');
  return _strerror_r!(
    __errnum,
    __buf,
    __buflen,
  );
}