1. char* x;
  2.  
  3. //do stuff with x;
  4.  
  5. x[strlen(x)] = '\0';