ReadString did not skip leading spaces
This commit is contained in:
parent
a33bd07a3d
commit
ee3a80c6e5
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue