struct MemBlock
{
size_t size;
unsigned char *ptr;
};
void Alloc(MemBlock *block, size_t size)
{
block->size = size;
};
c3RydWN0IE1lbUJsb2NrCnsKICAgIHNpemVfdCAgc2l6ZTsKICAgIHVuc2lnbmVkIGNoYXIgKnB0cjsKfTsKCnZvaWQgQWxsb2MoTWVtQmxvY2sgKmJsb2NrLCBzaXplX3Qgc2l6ZSkKewogICAgYmxvY2stPnB0ciA9IG1hbGxvYyhzaXplKTsKICAgIGJsb2NrLT5zaXplID0gc2l6ZTsKfTsK