mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 02:39:40 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			195 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			195 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
Program Example48;
 | 
						|
 | 
						|
{ Program to demonstrate the BaseName function. }
 | 
						|
 | 
						|
Uses linux;
 | 
						|
 | 
						|
Var S : String;
 | 
						|
 | 
						|
begin
 | 
						|
  S:=FExpand(Paramstr(0));
 | 
						|
  Writeln ('This program is called : ',Basename(S,''));
 | 
						|
end.
 |