mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 14:59:37 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			196 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			196 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
Program Example47;
 | 
						|
 | 
						|
{ Program to demonstrate the DirName function. }
 | 
						|
 | 
						|
Uses linux;
 | 
						|
 | 
						|
Var S : String;
 | 
						|
 | 
						|
begin
 | 
						|
  S:=FExpand(Paramstr(0));
 | 
						|
  Writeln ('This program is in directory : ',Dirname(S));
 | 
						|
end.
 |