Added one null comparison in string compare...

This commit is contained in:
Ognjen Milan Robovic 2024-06-16 14:16:28 -04:00
parent 1887bae82a
commit b216920600

View File

@ -523,8 +523,12 @@ int string_compare (char * string_0, char * string_1) {
} }
} }
if (string_0 [i] != string_1 [i]) {
return (false);
} else {
return (true); return (true);
} }
}
char * string_copy (char * string_0, char * string_1) { char * string_copy (char * string_0, char * string_1) {
int i = 0; int i = 0;