fork download
  1. #include <stddef.h>
  2.  
  3. char buffer[1 << 20];
  4. char *head = buffer;
  5.  
  6. void *some_alloc(size_t N)
  7. {
  8. void *result = head;
  9. head += N;
  10. return result;
  11. }
  12.  
  13. int main(void)
  14. {
  15. some_alloc(20);
  16. }
Success #stdin #stdout 0s 2852KB
stdin
Standard input is empty
stdout
Standard output is empty