Currently viewing: GipsySoft » Front Page» Articles

RemoveFilename

Remove the filename from a fullpath name.

Copies the path name of the full fimename into pszBuffer

void RemoveFilename( const char * pcszFilePath, char * pszBuffer );

Return value

none

Example

TCHAR szBuffer[ MAX_PATH ];
GetModuleFileName( NULL, szBuffer, MAX_PATH );
TCHAR szPath[ MAX_PATH ];
RemoveFilename( szBuffer, szPath );

 

Click to view the source code

See also none