Does anyone know how to convert the first n characters of a string to spaces, but leave the rest intact? So if n = 6, and I use the string "This is a string", it will convert it to " s a string". I would also like it to keep \n, if that were possible.
char tmp[32]; //create a tmp string strcpy(tmp, text); //copy the actor text to tmp tmp[0] = ' '; //set the space in the tmp string strcpy(text, tmp); //copy back to text actor