char* x; //do stuff with x; x[strlen(x)] = '\0';