|
|
1.1 ! root 1: #print ! 2: (Section 1.9 -- read 1.6-1.8 too.) ! 3: Write a program that removes trailing blanks ! 4: and tabs from each line of input, and deletes ! 5: entirely blank lines. To make your job easier, ! 6: you can use the function getline; its source ! 7: is in getline.c. ! 8: Type ready when you are done. ! 9: #once #create Ref ! 10: This file contains ! 11: some trailing ! 12: blanks ! 13: and tabs ! 14: ! 15: ! 16: ! 17: ! 18: and some empty lines. ! 19: #once #create Ref1 ! 20: This file contains ! 21: some trailing ! 22: blanks ! 23: and tabs ! 24: and some empty lines. ! 25: #once cp %s/getline.c . ! 26: #user ! 27: a.out <Ref >test ! 28: #cmp test Ref1 ! 29: #succeed ! 30: No answer yet - sorry. ! 31: #log ! 32: #next ! 33: 10 10
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.