Code:

char string[32];
strcpy(string, "This is a test string!");
chstrswithf(string);

printf(string); // => "Thif"