A lot of the software we use at work is provided by a software contractor (who shall remain nameless). Somewhere in their software there's a piece of code to reverse bytes in a byte buffer. It looked something like this:
static void swap(char *buf, int n)
{
char tmp ...