> sprintf("%s", ptr, reverse); //THIS CAUSES THE ERROR
sprintf(3): formatted output conversion - Linux man page
Considering that the first parameter is supposed to be the string to WRITE into,...