From 2f6bba5ce7e8069438a39b4e1a73df1cea899378 Mon Sep 17 00:00:00 2001 From: justuser-31 Date: Fri, 9 May 2025 10:23:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B8=D0=BD=D1=83=D0=B4=D0=B8?= =?UTF-8?q?=D1=82=D0=B5=D0=BB=D1=8C=D0=BD=D0=BE=D0=B5=20=D0=BF=D0=B5=D1=80?= =?UTF-8?q?=D0=B5=D1=80=D0=B0=D1=81=D0=BF=D1=80=D0=B5=D0=B4=D0=B5=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20RAM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/string.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/string.h b/libs/string.h index b031ba7..474d677 100644 --- a/libs/string.h +++ b/libs/string.h @@ -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 ------------------