fork download
  1. struct MemBlock
  2. {
  3. size_t size;
  4. unsigned char *ptr;
  5. };
  6.  
  7. void Alloc(MemBlock *block, size_t size)
  8. {
  9. block->ptr = malloc(size);
  10. block->size = size;
  11. };
  12.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty