Table of Contents

zfile_TrimDir

Description

Trim the directory path from a given file name.

Files

Declaration zFile.h
Implementation zFile.cpp

Function prototype

bool zfile_TrimDir(const char* lpFileName, ZSTR hResult);

Arguments

Name Type Comment
lpFileName const char* A pointer to a C-style string containing a file name, the directory of which is to be trimmed off.
hResult ZSTR A ZSTR handle to a string variable that is to receive the file name with the extension trimmed off.

Return value

False if an error occurred, and true otherwise.

Comments

None.