Initialization

This commit is contained in:
Kozar 2024-04-25 17:41:03 +02:00
parent 415b874983
commit 9fdb2f3d35

View File

@ -28,6 +28,9 @@ int main() {
int i, found = 0;
// Remove the newline character from the temp_name array
temp_name[strcspn(temp_name, "\n")] = '\0';
for (i = 0; i < num_accepted; i++) {
if (strcmp(names[i], temp_name) == 0) {
found = 1;