Помогите плиз, почему у меня не работает эта программа
книга ЯЗЫК С Б.В. Керниган, Д.М. Ричи .#define eof -1
#define maxline 1000 /* maximum input
line size */
main() /* find longest line */
{
int len; /* current line length */
int max; /* maximum length seen so far */
char line[maxline]; /* current input line */
char save[maxline]; /* longest line, saved */
max = 0;
while ((len = getline(line, maxline)) > 0)
if (len > max) {
max = len;
copy(line, save);
}
if (max > 0) /* there was a line */
printf("%s", save);
}
getline(s,lim) /* get line into s,return length */
char s[];
int lim;
{
int c, i;
for(i=0;i<lim-1 && (c=getchar())!=eof && c!='\n';++i)
s[i] = c;
if (c == '\n') {
s[i] = c;
++i;
}
s[i] = '\0';
return(i);
}
copy(s1, s2) /* copy s1 to s2;
assume s2 big enough */
char s1[], s2[];
{
int i;
i = 0;
while ((s2[i] = s1[i]) != '\0')
++i;
}