1 /* 1-17. Write a program to print all input lines that are longer than 80
5 /* MAXLINE has been reduced for easier testing */
9 int getlin(char line[], int maxline);
10 void copy(char to[], char from[]);
14 int len; /* current line length */
15 char line[MAXLINE]; /* current input line */
17 while ((len = getlin(line, MAXLINE)) > 0) {
24 int getlin(char s[], int lim)
28 for (i=0; i<lim-1 && (c=getchar())!=EOF && c!='\n'; ++i)
38 void copy(char to[], char from[])
42 while ((to[i] = from[i]) != '\0')