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