Hello,
I have a dynamically allocated array. This array is of structure type. I have a conditional check to verify whether each element of this array was allocated with memory before performing further actions. I have palced the source code below.
Initially "ParaStructArray" is allocated with defined array size
ParaStructArray = (T_Data*) calloc(arraysize, sizeof(T_Data));
Later in one fo my functions I have the validation check like this
if(&ParaStructArray[iVal] != NULL)
{
....
Can I know whether there exists any function similar to _msize available in Borlan compiler which can return me the information on the memory size?