mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-10-29 17:45:04 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			269 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			269 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
| Program Example84;
 | |
| 
 | |
| { This program demonstrates the Trim function }
 | |
| 
 | |
| Uses sysutils;
 | |
| {$H+}
 | |
| 
 | |
| Procedure Testit (S : String);
 | |
| 
 | |
| begin
 | |
|   Writeln ('"',Trim(S),'"');
 | |
| end;
 | |
| 
 | |
| Begin
 | |
|   Testit ('  ha ha what gets lost ? ');
 | |
|   Testit (#10#13'haha ');
 | |
|   Testit ('              ');
 | |
| End. | 
