pathsplit
| pathsplit | 
  Purpose
 
 
 Split a path into its components.
 
 
  Synopsis
 
 function pathsplit(how:integer,path:text,rem:text):text
 function pathsplit(how:integer,path:text):text
 
  Arguments
 
 | 
     how 
     | 
     How to split the path:
     
 | ||||||
| 
     path 
     | 
     The path name to split
     | ||||||
| 
     rem 
     | 
     Remaining part of the path after the returned value has been removed
     | 
  Return value
 
 
 The requested part of the path.
 
  Example
 
 
 The following function returns the base name of a path (file name without directory and extension):
 
 function basename(f:text):text returned:=pathsplit(SYS_FNAME,f) dummy:=pathsplit(SYS_EXTN,returned,returned) end-function
  Further information
 
 
  Arguments
 path and
 rem can be the same object.
 
 
  Module
 
  
