2 * 1-22. Write a program to "fold" long input lines into two or more shorter lines after the last non-blank character that occurs before the n-th column of input. Make sure your program does something intelligent with very long lines, and if there are no blanks or tabs before the specified column.
19 while ((c = getchar())!=EOF) {
22 len = strln(current)+1;
24 printf("%s%c", current, c);
27 printf("\n%s%c", current, c);
31 } else if (c == '\n') {
33 printf("%s%c", current, c);
35 } else if (c == '\t') {
36 len = strln(current)+TABSTOP;
39 printf("%s%c", current, c);
42 printf("\n%s%c", current, c);
55 for (i=0; s[i] != '\0'; ++i)