a pointer version of the function strcat