Цитата:
Повідомлення від passtas
шоб посмотреть кто что может в свой возраст
|
Наглый. Сам-то что сделал?
Цитата:
а дэмки можно и выложить,
|
Лови боевую:
http://www.smart.vn.ua/forum/showthread.php?t=1684
Цитата:
Никто исходники не просит
|
Нет уж, напросился - читай:
Код:
static int process_file( rrlist_file_t *file,
process_file_func_t *file_func, void *opaque ) {
char *aliases[ RRLIST_MAX_ALIASES + 1 ];
rrlist_inode_t *inode = file->inode;
int jx = 0;
struct list_head *jp;
if ( RRL_HAS_ALIASES( inode ) ) list_for_each( jp, &inode->links ) {
rrlist_file_t *tfile = list_entry( jp, rrlist_file_t, file_of_inode );
aliases[ jx++ ] = tfile->fullname;
if ( jx > RRLIST_MAX_ALIASES )
break;
}
aliases[ jx ] = NULL;
file_func( opaque, file->fullname, file->shortname, file->realname,
inode->size, inode->time, inode->type,
RRL_HAS_ALIASES( inode ) ? aliases : NULL );
return ( 0 );
}
Кстати, угадай язык!