Function libc::sbrk [] [src]

pub extern fn sbrk(n: isize) -> *mut u8
Unstable (libc)

: use libc from

Increment data segment of this process by some, n, return a pointer to the new data segment start.

This uses the system call BRK as backend.

This is unsafe for multiple reasons. Most importantly, it can create an inconsistent state, because it is not atomic. Thus, it can be used to create Undefined Behavior.