mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 10:19:31 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			309 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			309 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
Program Example51;
 | 
						|
 | 
						|
{ Program to demonstrate the StringToPPChar function. }
 | 
						|
 | 
						|
Uses linux;
 | 
						|
 | 
						|
var P : PPChar;
 | 
						|
    S : String;
 | 
						|
begin
 | 
						|
  S:='/bin/ls -l -F';
 | 
						|
  P:=StringToPPChar(S);
 | 
						|
  Writeln ('Name     : ',p^); inc(longint(p),4);
 | 
						|
  writeln ('Option 1 : ',p^); inc(longint(p),4);
 | 
						|
  writeln ('Option 2 : ',p^);
 | 
						|
  end.
 |