/* * trim_strings.c * * Remove trailing blanks and tabs from each line of input, and * delete entirely blank lines. * K&R Exercise 1.18 */ #include #include #include // Maximum input line size #define MAXLINE 256 // Function that trims the whitespace at the end of string s // and returns the length of the new string. int trim_string (char s[]); int main() { // Read input line-by-line // Trim whitespace and print line if any characters left return 0; } int trim_string (char s[]) { // Implementation of the trim_string function }