stpncpy function

Pointer<Int8> stpncpy(
  1. Pointer<Int8> __dest,
  2. Pointer<Int8> __src,
  3. int __n
)

Copy no more than N characters of SRC to DEST, returning the address of the last character written into DEST.

Implementation

ffi.Pointer<ffi.Int8> stpncpy(
  ffi.Pointer<ffi.Int8> __dest,
  ffi.Pointer<ffi.Int8> __src,
  int __n,
) {
  _stpncpy ??= Libc().dylib.lookupFunction<
      ffi.Pointer<ffi.Int8> Function(
          ffi.Pointer<ffi.Int8>, ffi.Pointer<ffi.Int8>, ffi.Uint64),
      _dart_stpncpy>('stpncpy');
  return _stpncpy!(
    __dest,
    __src,
    __n,
  );
}