normfname
| normfname | 
  Purpose
 
  Synopsis
 
char *normfname(char *fname, const char *ext, int force);
 
  Arguments
 
| 
     fname 
     | 
     Path and file name to normalize
     | 
| 
     ext 
     | 
     Extension to append to the file name
     | 
| 
     force 
     | 
     If 0, the extension is appended to the file name only if it has no extension; otherwise, the provided extension replaces the existing file name extension
     | 
  Return value
 
 The parameter
 fname.
  Further information
 
 This function prepares a file name (including its path) for being used with operating system functions by setting the correct path separator (
 e.g. replace `/' by `\' under Windows) and appends a given file extension to it. The array
 fname must be large enough to receive the provided extension
 ext.
 
  Related topics
 
 
