20,741
edits
m (→Problem) |
m (→Memory blocks) |
||
| Line 20: | Line 20: | ||
<syntaxhighlight lang="C"> | <syntaxhighlight lang="C"> | ||
struct Block { | struct Block { | ||
int size; | int size; // size of the block | ||
char* block; | char* block; // pointer to the memory region | ||
struct Block* next; | struct Block* next; // pointer to the next block | ||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 52: | Line 52: | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Nasal memory pools == | == Nasal memory pools == | ||