Initialization
This commit is contained in:
parent
d9ee7802d1
commit
134344fe10
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user