- memcpy(out, k, sizeof(unsigned long int));
- memcpy(out+sizeof(unsigned long int), &leido, sizeof(unsigned long int));
-
+ memcpy(out, &leido, sizeof(Uint32));
+ memcpy(out+sizeof(Uint32), k, sizeof(Uint32));
+ printf("%ld -> %ld\n", *k, *(Uint32 *)(out+sizeof(Uint32)));