#include <cybiko.h>
...
struct FileFind searcher;
struct File file_info;
...
File_ctor( &file_info );
FileFind_ctor( &searcher, &file_info, "quake.*" );
...
TRACE( "Search results for quake :" );
do
{
FileFind_next_element( &searcher );
TRACE( "\t%s has size %ld", file_info.name, file_info.size );
}while( FileFind_has_more_elements( &searcher ) );
...
FileFind_init( &searcher, &file_info, "warcraft.*" );
TRACE( "Search results for warcraft :" );
do
{
FileFind_next_element( &searcher );
TRACE( "\t%s has size %ld", file_info.name, file_info.size );
}while( FileFind_has_more_elements( &searcher ) );
...
File_dtor( &file_info , LEAVE_MEMORY );
FileFind_dtor( &searcher, LEAVE_MEMORY );
...