Initialization

This commit is contained in:
Kozar 2024-04-22 17:42:27 +02:00
parent d9ee7802d1
commit 134344fe10

View File

@ -20,7 +20,6 @@ int main() {
while (fgets(temp_name, sizeof(temp_name), stdin) != NULL && num_accepted < max_students) { while (fgets(temp_name, sizeof(temp_name), stdin) != NULL && num_accepted < max_students) {
// Remove newline character from temp_name // Remove newline character from temp_name
temp_name[strcspn(temp_name, "\n")] = '\0';
int i, found = 0; int i, found = 0;