Drogon:
memcpy() copy all the bytes
I do not want to copy all bytes only the bytes that interest me from the array.
It’s always good to define your problem clearly and completely in your first post.
memcpy() copies as many bytes as you want.
memcpy(array2+a, array1+x, 3);
EDIT: assumes desired bytes are consecutive.