This question about byte-swapping had been previous closed for the reason "Questions must demonstrate a minimal understanding of the problem being solved." However, this is no longer a close reason on SO.
Beyond the blatant lack of research, the question looks fine, and by the voting people have certainly found it useful. Granted, we may not need any more answers for it, but maybe 10 years down the road a new C standard will give us a better way to do it.
Is there a way to go about re-opening this?