char * packet = "abcdefg"; packet[0] = 'X'; /* packet now contains "Xbcdefg" */