c function for converting big_endian to little_endian

Hello Everybody,
Can anybody provide a fuction to convert big_endian to little_endian.Actually i am receiving a 512 bytes buffer from bigendian machine.I have to convert it to little endian so please help me out.
Advanced thanks for reply.

Look at ENDIAN_SWAP*().