hello,
Here's a simple question I want to clear up.
We all know that we can use the name of an array as the pointer to that array, and that a pointer holds the address to the variable named.
What I'm doing is this
//somwhere in the code
uint8_t myspace[100];
//elsewhere in the code
uint8_t *pmyspace = myspace;
//and again somewhere different
uint8_t array[256];
//Is this correct if I want to copy the 100 values in myspace to array?
array = pmyspace;
//Or Should I go one by one
for (int i=0; i<100; i++)
{
array[i] = *(pmyspace+i);
}
That's it,
Thanks in advance,
T