is there any function which convert the char array into its invert starting from the end and then copy it to another char array?