changed a comment

This commit is contained in:
FantasyPvP
2024-11-10 00:42:59 +00:00
parent e201014530
commit af08485d27
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -13,6 +13,7 @@
"vector": "c",
"__bit_reference": "c",
"source_location": "c",
"stdbool.h": "c"
"stdbool.h": "c",
"dynstr.h": "c"
}
}
+1 -1
View File
@@ -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;
// }