1 2 3 4 5 6 7 8 9
#include <assert.h> #include <stdio.h> #include <unistd.h> int main() { void *ret = sbrk(0); assert(ret != (void *) -1); assert(ret); }