Truxton carve file
Jump to navigation
Jump to search
Sends a file to the carver.
Syntax
int truxton_carve_file( uint64_t truxton_handle, char const * file_id );
Parameters
truxton_handle
The Truxton instance that contains this media.
This handle comes from calling truxton_create().
file_id
The string representation of the GUID of the file to carve.
It should match the value in the [ID] column of a record in the [File] table.
Return value
A non-zero value on success, zero on failure.
Sample
void dump( char const * file_id )
{
uint64_t truxton = truxton_create();
if ( truxton_carve_file( truxton, file_id, hash ) == 0 )
{
printf( "Cannot carve the file.\n" );
}
truxton_destroy( truxton );
}