How does getline() function work here?
问题 I do not understand how the function getline is working here. Why has the newline character been excluded from the for loop and why is it testing for the presence of newline character in a separate block? #include <stdio.h> #define MAXLINE 1000 /* maximum input line length */ int getline(char line[], int maxline); void copy(char to[], char from[]); /* print the longest input line */ main() { int len; /* current line length */ int max; /* maximum length seen so far */ char line[MAXLINE]; /*