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 | ||||
|     	i := 0; | ||||
| 	REPEAT | ||||
| 		Read(ch); | ||||
| 	UNTIL (ch # ' ') AND (ch # TAB); | ||||
| 	UnRead(ch); | ||||
|     	LOOP | ||||
| 		Read(ch); | ||||
| 		termCH := ch; | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue