Finite inkatate

This commit is contained in:
Ano-sys
2025-02-05 23:23:18 +01:00
parent c31fee2608
commit ad7cae413f
19 changed files with 22548 additions and 33695 deletions
+2 -1
View File
@@ -107,7 +107,8 @@ void free_key_value_pairs(key_value_pair **head, key_value_pair **tail)
int sum_f(const char *str){
if(str == NULL) return 0;
int sum = 0;
for(int i = 0; i < strlen(str); i++){
size_t len = strlen(str);
for(size_t i = 0; i < len; i++){
sum += str[i] - 48;
}
return sum;