copy smaller array into array cpp code example
Example: copy smaller array into array cpp
unsigned char *a1 = arr1;
unsigned char *a2 = arr2;
for (int x = 0; x < 768; x++) //copy each row
{
memcpy(a1, a2, nc);
a1 += 1024;
a2 += 768;
}
unsigned char *a1 = arr1;
unsigned char *a2 = arr2;
for (int x = 0; x < 768; x++) //copy each row
{
memcpy(a1, a2, nc);
a1 += 1024;
a2 += 768;
}