THPUtyCopyTHPFile

C Specification

#include <win32/thputilities.h>
s32 THPUtyCopyTHPFile(FILE*            ip,
THPFileHeader*   fileHeader,
FILE*            op);

Arguments

ip File pointer to the copy source.
fileHeader Pointer to the THPFileHeader structure.
op File pointer to the copy destination.

Return Values

Returns one of the following codes:

code value description
THP_ERROR_NOERROR 0 The function ended normally.
THP_ERROR_FILEIO 1 Failed to read or write from file.
THP_ERROR_DATA 4 The data is invalid.
THP_ERROR_FATAL 5 Failed to allocate memory.

Description

This function copies the THP file specified by ip to op.

For more information, see the thputilities(D).lib source code in build/tools/thputilities/src/thputilities.c.

See Also

None.

Revision History

03/01/2006 Initial version.