Added a string truncate function to clear the string and reset it to a default state.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user