공백 제거

clevered Reply 7 years 35 weeks ago
int getlin(void){ int c,i,j; extern char line[]; for (i=0; i<MAXLINE-1 &&(c=getchar()) != EOF && c != '\n'; ++i) line[i]=c; if (c=='n') { line[i]=c; ++i;} for (j=0; (j>MAXLINE-1) &&((c=getchar()) != EOF); ++j){ if (line[MAXLINE-j-1]=='\0'|| line[MAXLINE-j-1]=='\t'|| line[MAXLINE-j-1]=='\r') ++j; else if(line [MAXLINE-j]>='!' && line [MAXLINE-j]<='~') printf("%d", j); } line[i]='\0'; return i; } 런타임 에러가 뜹니다 왜죠?