M
Muhammed Shafi
Hi ,
What is the corresponding static allocation of this statement which
dynamically allocates some memory.
for(int i=0;i<2;i++)
{
TxControlBuffers.Data = malloc(sizeof(char) * 64);
}
where 'Data' is of type 'void * '.
Is this right?
TxControlBuffers.Data=OurTxData[sizeof(char) * 64];
TxControlBuffers.Data=(s32_t*)&(OurTxData[i*64]);
OurTxData is an integer array of size 128.
What is the corresponding static allocation of this statement which
dynamically allocates some memory.
for(int i=0;i<2;i++)
{
TxControlBuffers.Data = malloc(sizeof(char) * 64);
}
where 'Data' is of type 'void * '.
Is this right?
TxControlBuffers.Data=OurTxData[sizeof(char) * 64];
TxControlBuffers.Data=(s32_t*)&(OurTxData[i*64]);
OurTxData is an integer array of size 128.