I have function call as shown below:
void funCall(float *inp, int INPLen, float *out, char Case)
{
if(case == 0)
{
memcpy(out, inp, INPLen*4);
}
else if(case == 1)
{
// Out will be result of arithmetic operations on **inp**
variable.
}
}
In Case 0, if I use
Out = (float*) Inp;
, instead of memcpy, the variable Out is holding values of input only inside the function. What's the reason for it?
Are there any other way instead of memcpy?