Table of Contents

file_GetFilenameNoExt

Description

Get the filename of a file, without the file extension. If a full path to a file is provided, it will be included also.

Function prototype

bool CExtAPI::file_GetFilenameNoExt(ZVAR hStr, const char* lpFileName);

Arguments

Name Type Comment
hStr ZVAR A ZVAR handle to a string variable to receive the extension-less filename string.
lpFileName const char* A handle to a C-style string containing the file name, the extension of which is to be removed.

Return value

False if an error occurred, and true otherwise (with hStr containing the extension-less filename).

Comments

None.