This pointer comes from a function like this, and I want to remove a part of the string
Code:
void search(char *DirectoryPath)
Code:
#include <stdio.h>
int main() {
   // How do I make it work?
   char *A = "Slackware";
   A[5] = '\0';
   puts(A); // Slack

   // It works! char A[] = "Slackware";
}