From af08485d27c3fd4f3556ea2a5985e69d02861ab2 Mon Sep 17 00:00:00 2001 From: FantasyPvP <80643031+FantasyPvP@users.noreply.github.com> Date: Sun, 10 Nov 2024 00:42:59 +0000 Subject: [PATCH] changed a comment --- .vscode/settings.json | 3 ++- final/dynstr.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index ea95eb7..a9c8535 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -13,6 +13,7 @@ "vector": "c", "__bit_reference": "c", "source_location": "c", - "stdbool.h": "c" + "stdbool.h": "c", + "dynstr.h": "c" } } \ No newline at end of file diff --git a/final/dynstr.c b/final/dynstr.c index dfd4e5d..ba26941 100644 --- a/final/dynstr.c +++ b/final/dynstr.c @@ -147,7 +147,7 @@ String_t* str_split(String_t* self, int* res_len, char c) { *res_len = 0; for (int i = 0; i < strlen(string); i++) { if (string[i] == c) { - // if (flag) { + // if (flag) { // this condition was here so that empty strings would be ignore (*res_len)++; flag = false; // }