SZFILE_FindInArc

Syntax

#include <cafe/szfile.h>

int SZFILE_FindInArc(SZFILE_ARC *apArc, char const *apFileName, 
                     SZFILE_ENTRY ** apRetEntryPtr);

Parameters

apArc Pointer to archive control structure for the 7-Zip file.
apFileName Pointer to null-terminated file or path + file name of the file to find. Any leading slashes are ignored.
apRetEntryPtr Pointer to pointer to receive address of SZFILE_ENTRY for the found file.

Return Values

Returns zero for success or an error code to indicate failure. Error codes are:

ERRCODE_SZFILE_FILENOTFOUNDThe specified file was not found
ERRCODE_SZFILE_PATHNOTFOUNDAt least part of the path specified was not found.
ERRCODE_SZFILE_BADARGA bad argument was passed to a function

Description

This function allows you to find a file by its full path in an archive. It returns via an output parameter a pointer to the entry for the file if it is found.

Do Not Call From

Multiple threads This function is not thread-safe.

See Also

SZFILE helper library and demo
SZFILE_CreateArc
SZFILE_UnpackStream
SZFILE_GetUnpackedFile
SZFILE_Get
SZFILE_PurgeArc
LzmaCompress
LzmaUncompress

Revision History

2013/05/06 Initial version.


CONFIDENTIAL