Exemple #1
0
int main(int argc,char* argv[])
{
	if(argc!=3)
	{
		printf("inout format must be error an example can be like this:./cp pathname1 pathname2");
	}
	else
	{
		copy_to_file(open_from_file(argv[1],open_to_file(argv[2])));
		printf("copy finished\n");
	}
	return 0;
}
Exemple #2
0
bool FeSwf::open_from_archive( const std::string &path, const std::string &file )
{
	if ( m_imp->zip )
	{
		m_imp->root = NULL;
		m_imp->play = NULL;
		delete m_imp->zip;
	}

	m_imp->zip = new FeZipStream( path );

	if ( !m_imp->zip->open( file ) )
		return false;

	swf_zip = m_imp->zip;
	bool retval = open_from_file( path + "|" + file );
	swf_zip = NULL;

	return retval;
}