I have a struct TMedidorEletrico *medidor;
structure, and it is necessary to reallocate the memory for this structure dynamically until the user closes the loop . Memory must be relocated one step at a time , but when invoking the function realloc()
the second time causes the following error: