Table of Contents

file_GetFilenameNoDir

Description

Get the filename of a file, without the directory path.

Function prototype

bool CExtAPI::file_GetFilenameNoDir(ZSTR hStr, const char* lpFileName);

Arguments

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

Return value

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

Comments

None.