Added a string truncate function to clear the string and reset it to a default state.

This commit is contained in:
2022-07-18 16:27:44 -05:00
parent c201da9736
commit 58de344698
3 changed files with 28 additions and 0 deletions
+9
View File
@@ -102,6 +102,15 @@ int main(int argc, char** argv) {
}
}
if (input[0] == 't') {
TStringPrintDetails(string, 0);
TStringTruncate(string);
printf("TString truncated\n");
continue;
}
TStringAppendText(input, string);
}