Why all that whenQuote:
Originally Posted by Yasir_Malik
does the same thing without worrying about the shape of the structure? But as mentioned by someone else, memcpy is the way to go because of possible alignment issues.Code:a = *(A*)buf;