title: How do I remove Chars from the end of a Char*?
body: <p>I am writing a program in C++ that takes in an argument for a filename, the argument is a char*</p>
  
  <p>ex: <code>myFile.lan</code></p>
  
  <p>I need to remove the last 3 digits of this char* ("lan") and change them to "asm" (ex: myFile.asm)<br>
  It seems really easy to add chars to a char pointer through <code>strcpy</code>, but does anyone know how I can remove chars from a char pointer?</p>