It\'s been a long since I don\'t use C language, and this is driving me crazy. I have an array of structs, and I need to create a function which will copy one array to another (
As Johannes Weiß says, memcpy() is a good solution.
memcpy()
I just want to point out that you can copy structs like normal types:
for (i=0; i<4; i++) { b[i] = a[i]; /* copy the whole struct a[i] to b[i] */ }