#include #include #include #define MAX(a,b) ((a>b)?(a):(b)) #define MIN(a,b) ((a")==0) { printf("\n"); pos=0; continue; } if (strcmp(s,"
")==0) { if (pos>0) printf("\n"); printf("--------------------------------------------------------------------------------\n"); pos=0; continue; } i=0; while(s[++i]>0); if (pos>0)pos++; if (pos+i<=80) { if (pos>0) printf(" "); printf("%s",s); pos+=i; } else { printf("\n%s",s); pos=i; } } if (pos>0)printf("\n"); fclose(in); return 0; }