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

This commit is contained in:
justuser-31 2025-05-09 10:23:58 +03:00
parent 0d5a86a158
commit 2f6bba5ce7

View File

@ -11,6 +11,9 @@ string strInit(char* s) {
strcpy(str, s);
return str;
}
void strResize(string* s, int new_size) {
*s = realloc(*s, new_size * sizeof(char));
}
// -------------- END ------------------