Tks nidud,
Btw, i presume that your function uses a table of structures (M_BLOCK) to store the address of the memory to be allocated/deallocated, right ?
So, if it is a array of these structures, is there a limit of the number of elements ? mean, what is the maximum amount of M_BLOCKS structures ? When this amount exceeds, another array is created to ?
I´m asking this, because, let´s say a program have 300 calls to this function and the maximum amount of these calls are 100. The new memalloc will create the extra 200 group of M_BLOCKS so all 300 calls can work ? In other words, in case of exceeding is there a correspondence of realloc or a function that extendes the memory blocks ?