endian and str rot in c