Принудительное перераспределение RAM

This commit is contained in:
2026-06-11 13:18:12 +03:00
parent a153c6e063
commit a9a236c9b3
+3
View File
@@ -11,6 +11,9 @@ string strInit(char* s) {
strcpy(str, s); strcpy(str, s);
return str; return str;
} }
void strResize(string* s, int new_size) {
*s = realloc(*s, new_size * sizeof(char));
}
// -------------- END ------------------ // -------------- END ------------------