|
|
@ -91,7 +91,7 @@ int x_wins_02_11_20(char board[][3]) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
int string_character_counter(char string[]) { |
|
|
|
int stringCharacterCounter(char string[]) { |
|
|
|
int stringLength = 0; |
|
|
|
|
|
|
|
for (int i = 0; string[i] != '\0'; i++) { |
|
|
@ -104,7 +104,7 @@ int string_character_counter(char string[]) { |
|
|
|
int characterAppearanceInString(char c, char string[]) { |
|
|
|
int appear = 0; |
|
|
|
|
|
|
|
for (int i = 0; i < string_character_counter(string); i++) { |
|
|
|
for (int i = 0; i < stringCharacterCounter(string); i++) { |
|
|
|
if (string[i] == c) { |
|
|
|
appear++; |
|
|
|
} |
|
|
|