Initializing help system before first use

normfname

normfname


Purpose
Normalize a file name.
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

© 2001-2019 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.