sbrk function
Increase or decrease the end of accessible data space by DELTA bytes. If successful, returns the address the previous end of data space (i.e. the beginning of the new space, if DELTA > 0); returns (void *) -1 for errors (with errno set).
Implementation
ffi.Pointer<ffi.Void> sbrk(
int delta,
) {
_sbrk ??= Libc()
.dylib
.lookupFunction<ffi.Pointer<ffi.Void> Function(ffi.IntPtr), _dart_sbrk>(
'sbrk');
return _sbrk!(
delta,
);
}