ReadString did not skip leading spaces
This commit is contained in:
parent
4ea59adb33
commit
2c84d1bc14
@ -308,6 +308,10 @@ IMPLEMENTATION MODULE InOut ;
|
|||||||
|
|
||||||
BEGIN
|
BEGIN
|
||||||
i := 0;
|
i := 0;
|
||||||
|
REPEAT
|
||||||
|
Read(ch);
|
||||||
|
UNTIL (ch # ' ') AND (ch # TAB);
|
||||||
|
UnRead(ch);
|
||||||
LOOP
|
LOOP
|
||||||
Read(ch);
|
Read(ch);
|
||||||
termCH := ch;
|
termCH := ch;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user