/* getline: read a line into s, return length */ int getline(char s[], int lim) { int c, i; for (i=0; i